Qt 6.11 is out! See what's new in the release
blog
Spacer and qt designer
Qt Creator and other tools
3
Posts
2
Posters
2.9k
Views
1
Watching
-
Im creating a widget with qt designer that includes a list to the left and other widgets to the right, organized with a grid layout. When filled, the list is too narrow and the elements are cut unless I resize the window. I tried to solve that with an spacer, but I cant see any usual widget to resize the inner space of the window. Whats the correct way to do this?
-
You need to set your main layout as the layout of your top-level widget (usually a QMainWindow): "link":http://qt-project.org/doc/qt-4.8/qwidget.html#setLayout. In QMainWindow you have an additional convenience function available: setCentralWidget().