Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Orientation landscape only (but including reverse-landscape)

    Mobile and Embedded
    3
    3
    641
    Loading More Posts
    • 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
      joant7 last edited by

      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 Reply Quote 0
      • benlau
        benlau Qt Champions 2016 last edited by

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

        1 Reply Last reply Reply Quote 0
        • K
          kornava last edited by

          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 Reply Quote 0
          • First post
            Last post