728x90
반응형

Screen.orientation : Qt::ScreenOrientation

  • This contains the current orientation of the screen, from the accelerometer (if any). On a desktop computer, this value typically does not change.

  • If primaryOrientation == orientation, it means that the screen automatically rotates all content which is displayed, depending on how you hold it. But if orientation changes while primaryOrientation does NOT change, then probably you are using a device which does not rotate its own display. In that case you may need to use Item.rotation or Item.transform to rotate your content.

  • Note: This property does not update unless a Screen::orientationUpdateMask is set to a value other than 0.

  • https://doc.qt.io/qt-5/qml-qtquick-window-screen.html#orientation-attached-prop

  • https://doc.qt.io/qt-5/qml-qtquick-window-screen.html

728x90
반응형

+ Recent posts