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
Forum Updated to NodeBB v4.3 + New Features

Possible Qt layout bug

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 658 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 13 Feb 2015, 16:18 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
    • C Online
      C Online
      Chris Kawa
      Lifetime Qt Champion
      wrote on 13 Feb 2015, 17:47 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 13 Feb 2015, 18:45 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

        1/3

        13 Feb 2015, 16:18

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved