Important: Please read the Qt Code of Conduct -

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)


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

Log in to reply