[Development] unique_ptr and Qt, Take 2

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Fri May 3 22:15:52 CEST 2019


Il 03/05/19 22:00, Иван Комиссаров ha scritto:
> Which should be considered bad practice and banned on an API level
> 
> QWidget w2
> QWidget w1;
> w1.setParent(&w2);
> 
> QWidget w1;
> QWidget w2
> w1.setParent(&w2);

Banned at an API level -- how, exactly?

Cheers,
-- 
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/20190503/67807b9b/attachment-0001.bin>


More information about the Development mailing list