In my app I use an mdiArea as central widget. Inside this I create different Childs.
MdiChildDiskInfo *child = new MdiChildDiskInfo(this,strDriveName);
The MdiChildDiskInfo is a
class MdiChildDiskInfo : public MdiChildBase
that is basing on
class MdiChildBase : public QMainWindow
The MdiChildDiskInfo is created with
MdiChildDiskInfo::MdiChildDiskInfo(QWidget* parent, const QString &device)
I tried to stop creating the MdiChildDiskInfo with this->close() while the MdiChildDiskInfo is created. The close event is fired.
But always an empty QSubWindow is created. Means child has always an object.
I expect that the child is null when I add this->close() to the constructor. Special in case of Qt::WA_DeleteOnClose. But child is always an object. It looks that the MdiChildDiskInfo is always create also if I say close it.
Finally I want that
MdiChildDiskInfo *child = new MdiChildDiskInfo(this,strD
will return null to child.