Rotating Phone
Unsolved
Mobile and Embedded
-
Screen{ onOrientationChanged: { // do somthing } }
-
that doesn't work!! So what I did is this, but still doesn't work.
StackView { id: stack initialItem: landscapeForm } Screen.onOrientationChanged: { if (Screen.width > Screen.height) { landscapeForm.visible = true mainForm.visible = false stack.push(mainForm) } else { mainForm.visible = true landscapeForm.visible = false stack.pop() stack.push(landscapeForm) } }