Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Change orientation by force on iOS/Android. How?
bogong last edited by
I need to change device orientation by force. I found solution by using native Objective-C/Java code, for example something like this for iOS on Objective-C:
[[UIDevice currentDevice] setValue: [NSNumber numberWithInteger: UIInterfaceOrientationLandscapeLeft] forKey:@"orientation"];
I've got it attached to button and on background it's working perfectly, I see signal appeared after changing on device:
1617961673155 0x00006000009600a0 Orientation changed: Landscape inverted
But QML UI doesn't redrawing. Is there any way to redraw it in accordance of new device orientation? Is there some signal that can help me with it?