Possible Qt layout bug
-
wrote on 13 Feb 2015, 16:18 last edited by
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 .
-
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?
-
wrote on 13 Feb 2015, 18:45 last edited by
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/3