[Qt-qml] Flipable not showing content
bea.lam at nokia.com
bea.lam at nokia.com
Wed Oct 20 02:13:20 CEST 2010
On 20/10/2010, at 4:36 AM, ext Colin Kern wrote:
> On Fri, Sep 24, 2010 at 2:00 PM, Almo Nito <AlmoNito at gmx.de> 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
More information about the Qt-qml
mailing list