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?
↧