qt - Adjust height of QListWidget when window is resized -


i have based settings dialog on qt config dialog example found here:

http://doc.qt.io/qt-5/qtwidgets-dialogs-configdialog-example.html

i qlistwidget fill left of window (except button bar @ bottom) regardless of vertical size of window. in delphi there simple property set. can't find similar thing in qt.

is possible? if so, how?

--- edit --- example linked has same behaviour. code virtually copy of example.

here screen shot showing problem:

screen shot of config dialog

this can fixed removing mainlayout->addstretch(1); configdialog.cpp. line adds empty space stretches instead of other content when space available.


Comments