[Development] Opinions on QTBUG-71545

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Tue Nov 6 00:07:16 CET 2018


Hi,

Il 05/11/18 23:41, Konstantin Shegunov ha scritto:
>     But at least for QApplication I would consider having children being
>     common practice and actually Qt does this too:
> 
>     [snippet]
> 
> 
> Interesting point, I haven't thought about it.

Note however that those children are deleted explicitly (via manual 
calls to delete), and NOT via the parent/child relation.

See for instance the style getting destroyed in ~QApplication

> https://code.woboq.org/qt5/qtbase/src/widgets/kernel/qapplication.cpp.html#_ZN12QApplicationD1Ev

Or the session manager, in ~QGuiApplication

> https://code.woboq.org/qt5/qtbase/src/gui/kernel/qguiapplication.cpp.html#_ZN15QGuiApplicationD1Ev


My 2 c,
-- 
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: 4007 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20181106/c6e02af4/attachment.bin>


More information about the Development mailing list