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. QSpacerItem with maximum and minimum

QSpacerItem with maximum and minimum

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 246 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.
  • NathanielN Offline
    NathanielN Offline
    Nathaniel
    wrote on last edited by Nathaniel
    #1

    I understand how to use QSpacerItem with QSizePolicy::Maximum to prevent the parent layout getting blank space beyond that amount, and likewise QSizePolicy::Minimum to ensure at least that blank space, but how can I do both? I.e., prefer 5 pixels of blank space at the default window size but allow the spacer to stretch to 25 pixels (but not more)?

    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