El Jueves, 14 de Julio de 2011, Juha Turunen escribió:
> On Thu, Jul 14, 2011 at 12:08 PM, Alejandro Exojo <s...@badopi.org> wrote:
> > But now the Item groups everything, but has not size. I can set the
> > height with something like "height: colonSeparator.height + 10".
> > 
> > Maybe I'm using the wrong approach? Should I use a Row instead?
> > Thank you very much.
> 
> Row is fine if it's ok for you that the spacing between each child
> item is the same. If you need more flexibility you can still size the
> parent Item by using its childrenRect property
> (http://doc.qt.nokia.com/4.7-snapshot/qml-item.html#childrenRect.x-prop)


Thank you very much, that's exactly what I was looking for. I've been playing 
with Row and adding a dummy, invisible Item, but this seems more elegant.

Thanks again, regards.

-- 
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net
_______________________________________________
Qt-qml mailing list
Qt-qml@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to