[Development] Opinions on QTBUG-71545

Thiago Macieira thiago.macieira at intel.com
Mon Nov 5 21:35:22 CET 2018


On Monday, 5 November 2018 12:07:15 PST Elvis Stansvik wrote:
> If it is to be the same as all other QObjects, then it should maintain
> its current behavior I think. The destruction of children happens in
> the QObject destructor. I don't even think one have to look at the
> QObject destructor docs to understand that - where else would it be
> done, considering the parent/child mechanism is a mechanism common to
> all QObject-derived classes

Ah, but there's an exception: QWidget's destructor destroys its children, so 
that they get to see their parent before the QWidget ceases to be a QWidget.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center






More information about the Development mailing list