Details
-
Task
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
Make it possible to flip/mirror items horizontal/vertical. See the attached demo project.
function flipH(flip : bool, width : real) { if (flip) root.flipHorizontalMat = Qt.matrix4x4(-1, 0, 0, width, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1) else root.flipHorizontalMat = Qt.matrix4x4() } function flipV(flip : bool, height : real) { if (flip) root.flipVerticalMat = Qt.matrix4x4(1, 0, 0, 0, 0, -1, 0, height, 0, 0, 1, 0, 0, 0, 0, 1) else root.flipVerticalMat = Qt.matrix4x4() }