Orientation landscape only (but including reverse-landscape)



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


  • Qt Champions 2016

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



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.