[Qt-qml] Layout question

John Temples qt-qml at xargs.com
Tue Sep 20 22:19:13 CEST 2011


On Tue, 20 Sep 2011, Juha Turunen wrote:

> On Tue, Sep 20, 2011 at 10:23 PM, Pris Matic
> <prismatic.project at gmail.com> wrote:
>> You can get the number of elements in the column using the
>> 'ColumnID.children.length' property. Then you should be freely add and
>> remove buttons and maintain your spacing:
>> ie. change the Item to:
>
> If the heights of all the buttons are the same Column's spacing
> property can be used. This way there's no need for the wrapping Items
> and less property binding (1 bind vs. the amount of buttons).

I did try "spacing", but since spacing is only between elements, the
first button in the Column is aligned to the top of the Column.

--
John W. Temples, III


More information about the Qt-qml mailing list