Tree widget + list widget on main window



  • Hello,

    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 ?

    Thanks,
    Zvika.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.