> When making a QSharedPointer use deleteLater, you should really pass in a
> custom deleter like so:
>
> QSharedPointer<MyClass> instance(new Myclass(param), &QObject::deleteLater)
>
> i.e. at object creation time. It's risky to grab the raw pointer from a shared
> pointer and ask it to delete at some point.
Ack, &QObject::deleteLater on construction and QSharedPointer::clear() when releasing it.
> When making a QSharedPointer use deleteLater, you should really pass in a MyClass> instance(new Myclass(param), &QObject: :deleteLater)
> custom deleter like so:
>
> QSharedPointer<
>
> i.e. at object creation time. It's risky to grab the raw pointer from a shared
> pointer and ask it to delete at some point.
Ack, &QObject: :deleteLater on construction and QSharedPointer: :clear( ) when releasing it.