Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Tree widget + list widget on main window

Tree widget + list widget on main window

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zvivered
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kainjow
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved