[Solved]Will QTabWidget::addTab() set the parent for the widget handed over as parameter?
General and Desktop
8
Posts
5
Posters
6.8k
Views
1
Watching
-
Add
@
if (myParentlessWidget->parent())
qDebug() << "GOT A PARENT NOW!";
@after your code and check the output... That should produce results faster than posting on a forum;-).
-
[quote author="Tobias Hunger" date="1330010028"]Add
@
if (myParentlessWidget->parent())
qDebug() << "GOT A PARENT NOW!";
@after your code and check the output... That should produce results faster than posting on a forum;-).[/quote]
:-)
The "Just try it" mentality is not all that wide-spread anymore, I'm afraid...