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. Possible Qt layout bug
Qt 6.11 is out! See what's new in the release blog

Possible Qt layout bug

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 736 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
    miguelg
    wrote on last edited by
    #1

    I've got this form that is added to a stacked widget. The fields are spread out evenly vertically as can be seen in the following image: http://www.zimagez.com/zimage/screenshot-130215-161013.php

    But now if I add spacers vertically (as well as horizontally), the fields lose their ability to expand when I run the program. It looks ok in QtCreator though. Link to screenshot: http://www.zimagez.com/zimage/screenshot-130215-161710.php

    What's happening here? Using QtCreator 3.0.1/Qt 5.2.1 .

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      That's how it's suppose to work. Spacers take as much space as they can so that's what they are doing.

      What's your intended behavior?

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

        The intended behaviour is this: http://www.zimagez.com/zimage/screenshot-130215-184308.php

        Was forced to use spacers in between each field row and set row stretch accordingly.

        I take it spacers can't be controlled with `layoutRowStretch´ as shown in the second link of the original post?

        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