PDA

View Full Version : Widgets and Layouts



SpiceWeasel
4th April 2017, 13:58
Hello,

After allocating widgets and the layout, in which order should the following be done:
a. Setting the widgets size properties, then putting them in the layout?
b. Putting the widgets in the layout and then setting their size properties?

(Or does it matter?)

high_flyer
4th April 2017, 14:44
In principal it should not matter.
However, from experience, if you are using "exotic" size properties, mixing fixed with preferred, different spacings etc, the result can be other than you'd expect due to the interplay of these size properties of the widgets and the layout.
What I do when I have a complex layout is do it in designer and tweak it until I got what I was after and then take the generated code as a base for my actual code.