05-18-2013 05:03 AM
i tried to make an animation in Cascades QML.
but i found that there was no z-depth value in controls.
did i do anything stupid ? or Cascades did?
05-18-2013 11:14 AM
05-18-2013 11:37 PM
yes, i know that.
but now, if i wanna arrange z value in the run-time, what do i do?
in QtQuick, every component has a exlipict z value, so we can change the value in run-time to control where it should be displayed, in the front or back.
but in Cascades, i have no idea about this.
can u give me any idea?
05-19-2013 01:25 AM
hi all, i have found solution for this.
there is a method named "swap" in control Container.
u can use it to swap two children's position in the Container.
so, if u wanna change the z depth in run-time, call this method, and sort the children of the container.