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.dang...@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

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to