Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Force screen orientation on iOS

Force screen orientation on iOS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 761 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matteo Vigni
    wrote on last edited by Matteo Vigni
    #1

    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?
    Thanks!

    D 1 Reply Last reply
    1
    • M Matteo Vigni

      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?
      Thanks!

      D Offline
      D Offline
      DRoscoe
      wrote on last edited by DRoscoe
      #2

      @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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved