Spacer and qt designer
-
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().