[Development] Opinions on QTBUG-71545
Uwe Rathmann
Uwe.Rathmann at tigertal.de
Mon Nov 5 22:47:42 CET 2018
On Mon, 05 Nov 2018 21:31:26 +0200, Konstantin Shegunov wrote:
> 1) Is parenting to the application object a thing?
The title of the bug report is about QCoreApplication, while the demo
code is a QApplication - so I'm not 100% sure if I completely understood
the discussion.
But at least for QApplication I would consider having children being
common practice and actually Qt does this too:
int main ( int argc, char **argv )
{
QApplication a( argc, argv );
a.setStyle( "Windows" );
qDebug() << a.children();
...
}
=>
QPAEventDispatcherGlib(0x10a9af0)
QSessionManager(0x10ac560)
QWindowsStyle(0x10b34f0, name = "windows")
Uwe
More information about the Development
mailing list