[Qt-qml] Layout question

Juha Turunen turunen at iki.fi
Tue Sep 20 21:12:45 CEST 2011


On Tue, Sep 20, 2011 at 10:23 PM, Pris Matic
<prismatic.project at gmail.com> wrote:
> Hi,
> 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).

Juha


More information about the Qt-qml mailing list