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. How to make layout use minimum size
Forum Updated to NodeBB v4.3 + New Features

How to make layout use minimum size

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 434 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.
  • M Offline
    M Offline
    masa4
    wrote on last edited by
    #1

    I have vertical layout with 2 label inside it. I want to shrink the layout to just occupy needed space, no more. I set label's size to fixed, and layoutsizeconstraint to fixed but nothing changed. How can i do that?

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      the layout managers don't seem to handle fixed as most folks expect. set the min and max hint sizes and refer to

      enum QSizePolicy::Policy definitions

      Unfortunately they are not very descriptive without examples.

      I light my way forward with the fires of all the bridges I've burned behind me.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        masa4
        wrote on last edited by
        #3

        @Kent-Dorfman said in How to make layout use minimum size:

        I couldnt understand actually. I grab a couple spacer and placed them.

        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