[Interest] Migrating QWeakPointer to Qt5

Nye kshegunov at gmail.com
Sat May 7 05:42:37 CEST 2016


On Sat, May 7, 2016 at 12:54 AM, Thiago Macieira <thiago.macieira at intel.com>
wrote:

>
> > Yes, by actually using a QSharedPointer for the constructor (as
> > QWeakPointer is a weak reference to a shared pointer).
>
> That's not the same thing. For a while, we had deprecated QPointer in
> favour
> of QWeakPointer for tracking QObjects you did not own. But we came to our
> senses before Qt 5.0 was launched and un-deprecated QPointer for that
> functionality.
>

That's what I meant indeed, I suppose I should've been more descriptive. I
think QPointer is actually to be used here, as Bo Thorsen had noted.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160507/4d820134/attachment.html>


More information about the Interest mailing list