Hello,
I've noticed that I my widgets will only get shown when I create them at the initialisation of the class(in the constructor, or functions that were (indirectly) called by the constructor. If they're created later, they are(for some strange reason) not shown.
To show what I mean:I'm currently creating a dialog, using QPtrList, but I can't add widgets to QPtrList at initialization, because I get the information needed to create the widgets after i'm logged in, and that results in the widgets not being shown. However, when I add some widgets(just to test it) in the constructor, it does show them.Code:
Q_OBJECT protected slots: void createbutton() }; connect(but1, SIGNAL(clicked()), this SLOT(createbutton())); } void Myclass::createbutton() { }
My question is: Is there someway to add the widgets later and still show them(maybe by adding those widgets manually to a QObject list?)?
Thanx in advance,
Hylke