Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Force screen orientation on iOS
Matteo Vigni last edited by Matteo Vigni
I have already asked this question for Android in this post: link
and the answer was really accurate.
I now have to do the same thing for iOS. Does anyone have any idea if it is achievable and how?
DRoscoe last edited by DRoscoe
@Matteo-Vigni One way is to limit the screen orientation mask for the window you are rendering.
Typically, you would OR these enumerations together to specify supported orientations. In your app, when you create the window, set this to the desired orientation and do not provide any others by ORing them together. That should force the window to only allow one orientation when rendered.
The example I found which helped me is here:
From Window example project