Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Tree widget + list widget on main window
zvivered last edited by
My main window contains a tree widget at the top and list widget at the bottom.
Upon window resize I want that the list widget will always have the same height.
But its width will be as the width of the main window.
The tree widget will always take the rest of space.
Can I do it with the designer or should I need extra code ?
kainjow last edited by
Yes you can. In designer look at the sizePolicy property (expand it) and play around with Horizontal Policy and Vertical Policy.
Make sure you have your tree and list widgets in a Vertical Layout.