On 20/10/2010, at 4:36 AM, ext Colin Kern wrote:
> On Fri, Sep 24, 2010 at 2:00 PM, Almo Nito <[email protected]> wrote:
>> Hello there, i have a Flippable like the one in the flipabe example
>>
>> Cant I use ids as front and back? do I have to place the real item there?
>>
>
> It looks like you have to place the real item there:
> http://doc.qt.nokia.com/4.7/declarative-ui-components-flipable-content-card-qml.html
>
Actually ids can be used - you don't have to place the real item there.
In ui-components/flipable/Card.qml, if you replace
width: front.width; height: front.height
front: Image { id: frontImage; smooth: true }
with:
Image { id: frontImage; smooth: true }
width: frontImage.width; height: frontImage.height
front: frontImage
then the 'front' can be set with an id rather than the real item.
The width and height should be able to be bound to front.width and front.height
instead of frontImage.width and frontImage.height, but looks like there's a bug
there. Reported as http://bugreports.qt.nokia.com/browse/QTBUG-14551.
regards,
Bea
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml