Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. IOS change screen orientation on button press
Qt 6.12 LTS is out! See what's new in the release blog

IOS change screen orientation on button press

Scheduled Pinned Locked Moved Solved Mobile and Embedded
1 Posts 1 Posters 1.2k 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.
  • W Offline
    W Offline
    Wiru
    wrote on last edited by Wiru
    #1

    Greetings.
    I have been trying to figure out how to change the device orientation on IOS with a button press. The application has a video player, and when the user presses the full screen button, it should (force) change to landscape.

    Sadly I wasn't really successful in finding a working example.
    If I'm not wrong it should be set with UIINterfaceOrientationMask for IOS8 and above, however I'm not sure how to accomplish this.

    I'm trying to do this with objective-c and Qt 5.7.1.
    I would really appreciate if someone has advice or an example on how to accomplish this.

    EDIT:
    Found the solution https://stackoverflow.com/a/26993732/7035877

    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
    • Unsolved