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. Fix landscape orientation for both IOS/ANDROID
QtWS25 Last Chance

Fix landscape orientation for both IOS/ANDROID

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 1.5k 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.
  • YashpalY Offline
    YashpalY Offline
    Yashpal
    wrote on last edited by
    #1

    Hi,

    I'm developing an Qt/QML mobile application for both android and IOS. The orientation of my app is fixed to portrait. Now, I have a specific screen which demands landscape orientation. Now, my question is how to achieve landscape orientation for that one particular screen whereas, the orientation is fixed to portrait for my entire app?

    raven-worxR J.HilkJ 2 Replies Last reply
    0
    • YashpalY Yashpal

      Hi,

      I'm developing an Qt/QML mobile application for both android and IOS. The orientation of my app is fixed to portrait. Now, I have a specific screen which demands landscape orientation. Now, my question is how to achieve landscape orientation for that one particular screen whereas, the orientation is fixed to portrait for my entire app?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Yashpal
      this should be set "natively".
      For example in android this can be set via the manifest.xml

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • YashpalY Yashpal

        Hi,

        I'm developing an Qt/QML mobile application for both android and IOS. The orientation of my app is fixed to portrait. Now, I have a specific screen which demands landscape orientation. Now, my question is how to achieve landscape orientation for that one particular screen whereas, the orientation is fixed to portrait for my entire app?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @Yashpal hi, take a look at the Switching Between Portrait and Landscape Views part of the docu.

        this should be a working example.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        1
        • YashpalY Offline
          YashpalY Offline
          Yashpal
          wrote on last edited by
          #4

          Thank you @J-Hilk and @raven-worx for your support.

          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