[Development] Heads up: QWeakPointer re-education

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Mon Aug 19 11:26:39 CEST 2019

Il 16/08/19 11:02, Mutz, Marc via Development ha scritto:
> It seems that the presence of QWeakPointer::data() in the past has given
> many Qt developers the wrong impression and they're now fighting hard to
> keep that impression intact when porting away from deprecated data().

Many thanks for dealing with the fallout of this deprecation!

Indeed, the important message here is that QWeakPointer is not supposed 
to be treated like a raw pointer; std::weak_ptr is lacking data()/get() 
for the same reason, although implementing it costs nothing.

Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20190819/215b2896/attachment.bin>

More information about the Development mailing list