Regarding Z-order in QML
-
Are those two elements siblings? Could you post an excerpt of your qml code?
-
Z-order works for me, a simple sample
@
import Qt 4.7Item {
width: 200
height: 200Rectangle { id: red z: 1 color: "red" width: 100; height: 100 MouseArea { anchors.fill: parent onClicked: red.z = blue.z + 1 } } Rectangle { id: blue color: "blue" x: 50; y: 50; width: 100; height: 100 MouseArea { anchors.fill: parent onClicked: blue.z = red.z + 1 } }
}
@ -
Old topic, but not answered...
The z property of Item determines stacking order of sibling items, i.e. elements belonging to the same item.
Hence you cannot use the z property to move a child of parent A on top of (a child of parent) B if B is on top of A. (Which is a pity/pain :-))