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. Orientation landscape only (but including reverse-landscape)

Orientation landscape only (but including reverse-landscape)

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 3 Posters 866 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.
  • J Offline
    J Offline
    joant7
    wrote on last edited by
    #1

    Does Qt provide a way to set the available orientation of the app/device either landscape or reverse landscape? (I mean you can see the app only in landscape but if you invert the device the image would adapt but not to portrait orientation)

    Thanks,

    1 Reply Last reply
    0
    • benlauB Offline
      benlauB Offline
      benlau
      Qt Champions 2016
      wrote on last edited by
      #2

      I don't think so. You have to handle it by yourself per platform.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kornava
        wrote on last edited by
        #3

        Check this tip if it can at lea
        Item {
        id: container
        width: root.width
        height: Math.min(root.width, root.height)

        If you're in android add this to the concerned acticity section inside your app manifest file :
        android:screenOrientation="landscape"

        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