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

Alex Malyushytskyy alexmalvtk at gmail.com
Thu Apr 11 02:21:48 CEST 2013


It might be better also to attach ui file, so people can really see the
source.

Possible problems as I can guess:

- You do not have widget (top) layout which created.
If this is a case in designer click outside red boxes and click pn create
vertical layout icon.

- You are trying to re-size dialog in 2 directions. Both directions
matters, you might want to add resizer at the bottom to avoid scaling.

Regards,
    Alex


On Wed, Apr 10, 2013 at 5:21 PM, Alex Malyushytskyy <alexmalvtk at gmail.com>wrote:

> It might be better also to attach ui file, so people can really see the
> source.
>
> Possible problems as I can guess:
>
> - You do not have widget (top) layout which created.
> If this is a case in designer click outside red boxes and click pn create
> vertical layout icon.
>
> - You are trying to re-size dialog in 2 directions. Both directions
> matters, you might want to add resizer at the bottom to avoid scaling.
>
> Regards,
>     Alex
>
>
> On Wed, Apr 10, 2013 at 5:20 AM, Etienne Sandré-Chardonnal <
> etienne.sandre at m4x.org> wrote:
>
>> The second image (showing the problem) is missing:
>> http://imageshack.us/a/img577/7843/example2e.png
>>
>> Sorry,
>>
>> Etienne
>>
>>
>> 2013/4/10 Etienne Sandré-Chardonnal <etienne.sandre at m4x.org>
>>
>>> 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
>>>
>>
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130410/40836673/attachment.html>


More information about the Interest mailing list