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. List is expanding and hiding everything else!!

List is expanding and hiding everything else!!

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.6k 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.
  • T Offline
    T Offline
    TheDestroyer
    wrote on last edited by
    #1

    Hello guys,

    I have a list on a QGridLayout, it's exanding and fillings 80% of my widget! I tried resizing, setting size policy to fixed, setting minimum size and resizing after that, and all this doesn't work...

    How can I tell the grid to evenly give space to the elements? or how can I make the elements smaller?

    Thanks! :)

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fluca1978
      wrote on last edited by
      #2

      I don't understand why having the list to expand is not good, since you should let the layout to do its job. And if widgets are within the layout all should be fine. Have you tried to add a spacer?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        you can try to set the "sizePolicy":/doc/qt-4.8/qwidget.html#sizePolicy-prop and/or the horizontal/vertical stretch on the widget.

        The "layout management":/doc/qt-4.8/layout.html docs have the details.

        http://www.catb.org/~esr/faqs/smart-questions.html

        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