[Interest] Layout expanding not as I would like...

Etienne Sandré-Chardonnal etienne.sandre at m4x.org
Wed Apr 10 14:19:24 CEST 2013


Dear interest users,

Another question about layouts.

I have a few labels in a small table layout. This layout is nested in a
horizontal layout with a spacer on the right. The "Xn", "Yn" and "Zn" label
policies are set to "Fixed" as this will never change in the app. The "N/A"
labels will be updated to numbers by the app, so size is set to
"preferred". The following picture shows how resizing works:
http://imageshack.us/a/img594/8161/example1m.png

Then, I set the "N/A" labels to "Expanding", and their maximum size to 75.
When increasing the layout size, it starts working properly, the "N/A"
label expands. But when reaching the maximum size of 75, now the layout
expands everything by increasing its margins. I would expect to increase
only the spacer as in the first image, as the maximum size is reached.

How can I fix this behavior?

Thanks,

Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130410/123d0657/attachment.html>


More information about the Interest mailing list