Important: Please read the Qt Code of Conduct -

Force screen orientation on iOS

  • Hi everyone,
    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?

  • @Matteo-Vigni One way is to limit the screen orientation mask for the window you are rendering.

    Screen Orientation

    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

Log in to reply