You are missing a layout on some level, most probably your VBoxLayout's parent widget is not placed in a layout.
I have no idea why does the title of this thread refer to promoting widgets, though.
You are missing a layout on some level, most probably your VBoxLayout's parent widget is not placed in a layout.
I have no idea why does the title of this thread refer to promoting widgets, though.
The reason I used the terminology of promoting widgets is that that is what I did to obtain the same result in Creator.
Create a widget on the form -> promote widget -> include header + class name and it then appeared on the main window.
Thank you for your suggestion regarding adding parent widget. I will try that now!
Solved.
I was adding my layout to a QWidget and doing widget->show(); instead of setCentralWidget(widget);
Bookmarks