Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Is there a way to change front/back properties in a Flipable?

$
0
0
The Flipable element can easily offer nice transitions. But is there a way to change the back and/or front once they’re set? For example, if I do this: Flipable {     id: flipable     front: Image { source: "someImage.jpg" }     back: Image { source: "anotherImage.jpg" }       Image {         id: img         source: "yetAnotherImage"     }      Component.onCompleted: flipable.front = img } It gives me this error: QML Flipable: front is a write-once property So, are there any workarounds to this? I tried a few things, but couldn’t come up with a solution. By the way, why is there even there this limitation?

Viewing all articles
Browse latest Browse all 4972

Trending Articles