-
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
'Qt' 카테고리의 다른 글
2020년에 변경되는 Qt 오퍼 (Qt offering changes 2020) (0) | 2020.01.31 |
---|---|
Qt로 XML 파싱 : Qt 6에서 업데이트된 (Parsing XML with Qt: Updates for Qt 6) (0) | 2020.01.16 |
Qt for Python을 위한 기술 비전 (Technical vision for 'Qt for Python') (0) | 2019.08.20 |
Qt 6 기술 비전 (Technical vision for Qt 6) (0) | 2019.08.08 |
Qt6 Git 개발 초기 단계 시작하기 (0) | 2019.08.02 |