I bet my question is obvious from it's title but it may be as well not =)
So let me explain in detail... I have created a QDockWidget and then transformed (I mean promoted to..) it into a subclass using the designer.
So how do I properly access the widgets I've placed? The idea is that all the subclass' objects are dealt within the subclass. The problem (as you may be aware) is that
this->children().count()
Returns this:
QDockWidgetLayout(0x1022373d0)
QDockWidgetTitleButton(0x102237510, name = "qt_dockwidget_floatbutton")
QDockWidgetTitleButton(0x102235500, name = "qt_dockwidget_closebutton")
QWidgetResizeHandler(0x102235de0)
QAction(0x102221500)
And none of them contain QLabels and other tish that I want to get my hands on). Looking in ui_mainwindow.h however shed some light on the matter. Widgets are on a dockWidgetContents_3 who is a QWidget that has no parent. So the only way seems to be accessing it through MainWinsow's ui->... And thinking of making ui public makes me a "very sad panda"...
Thanks in advance!