Qt-interest Archive, May 2008
Force Sizing on Form (Layout??)
Message 1 in thread
I am designing a form that will fit nicely into a 2x2 square, the
objects in row 1 cols 1 & 2, and in row 2, col 1 being the same
graphical plotting objects, but in position row 2 col 2 is a group box.
I want to force the 3 graphing objects to always be the same size, but
allow them to expand. I have to admit I do not fully understand the
settings in layouts, "Preferred", "Minimum". "maximum", etc. I can never
seem to get my objects to behave using those specifiers, i generally
leave these options at their default of "Preferred"
Are there tricks to forcing similar objects to be same size? Some
combination of other settings?
--
[ signature omitted ]
Message 2 in thread
Put the widgets in a QGridLayout, and set all of their size policies to
"Ignored". This should cause the grid to divide the space evenly between
them.
Tom
On Tue, May 27, 2008 at 8:44 PM, Kenneth Beck <nekkceb@xxxxxxxxxxx> wrote:
> I am designing a form that will fit nicely into a 2x2 square, the objects
> in row 1 cols 1 & 2, and in row 2, col 1 being the same graphical plotting
> objects, but in position row 2 col 2 is a group box.
> I want to force the 3 graphing objects to always be the same size, but
> allow them to expand. I have to admit I do not fully understand the settings
> in layouts, "Preferred", "Minimum". "maximum", etc. I can never seem to get
> my objects to behave using those specifiers, i generally leave these options
> at their default of "Preferred"
>
> Are there tricks to forcing similar objects to be same size? Some
> combination of other settings?
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>