cboe
16th August 2015, 23:54
Hi, I'm net to Qt and QML - this seems like a rather simple issue but I can't find a simple solution to it.
Say I have the following example QML
Item {
... lots of other stuff
Item {
id: obj_container
property var obj
Text {
text: obj.name
}
Image {
source: obj.source
}
}
}
Now when the obj property becomes null, I would like to fade out the obj_container item, while still displaying the values it had before it was set to null.
Alternatively, if the obj item changes to a different obj, I would like to fade out the obj_container item (still displaying its previous values) and then fade it in again with the new values.
How would I go about this?
Say I have the following example QML
Item {
... lots of other stuff
Item {
id: obj_container
property var obj
Text {
text: obj.name
}
Image {
source: obj.source
}
}
}
Now when the obj property becomes null, I would like to fade out the obj_container item, while still displaying the values it had before it was set to null.
Alternatively, if the obj item changes to a different obj, I would like to fade out the obj_container item (still displaying its previous values) and then fade it in again with the new values.
How would I go about this?