On Wed, Jul 28, 2010 at 9:13 PM, <warwick.alli...@nokia.com> wrote:

> There is. They simply set the width and height in the element:
>
> MyFoo.qml:
>
> import Qt 4.7
> Item { width: 100; height: 100; ... }
>

Yep, but this only works for static default sizes. If instead I had to do

MyFoo.qml:

import Qt 4.7
Item { width: calcWidthBasedOnContent(); height: 100; ... }

I'd be in trouble since subsequent recalculations of
"calcWidthBasedOnContent()" would conflict with anchors that eventually
exist outside, like in:

main.qml

import Qt 4.7
Item {
    MyFoo { anchors.fill: parent }
}

What would make anchors and an active binding exist at the same time for
MyFoo.

-- 
Eduardo M. Fleury
OpenBossa - INdT
http://eduardofleury.com/
http://www.openbossa.org/
_______________________________________________
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to