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. SetWidgetResizable(true)
Qt 6.11 is out! See what's new in the release blog

SetWidgetResizable(true)

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

    I have a scroll Area - 7 widgets are shown on one page.
    If there are 3 widgets they are spread out in scroll area with more inter spacing. The default spacing between widget is 3.

    How can I fix interspacing that the widgets should not be spread in whole scroll area?

    I need setWidgetResizable(true) because sometimes there are 10 or 20 widgets so scroll area needs to expand.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Just add a spacer in the end, this will put them together.

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sVirgo
        wrote on last edited by
        #3

        Thank you!

        That worked like a charm.

        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