Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.2.0 RC1
Description
Using Qt.onOrientationChanged is not triggered in QML except if the app is a C++/QML app and a line is added in main(). Qt.onOrientationChanged should probably always called on android?
QScreen* screen = QGuiApplication::primaryScreen();
//Without this line, Screen.onOrientationChanged doesn't work in qml
screen->setOrientationUpdateMask(Qt::LandscapeOrientation| Qt::PortraitOrientation | Qt::InvertedLandscapeOrientation | Qt::InvertedPortraitOrientation);
Test project is attached.
Attachments
For Gerrit Dashboard: QTBUG-35427 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
295026,4 | Remove QScreen::orientationUpdateMask | dev | qt/qtbase | Status: MERGED | +2 | 0 |
299769,2 | Remove uses of QScreen::orientationUpdateMask | dev | qt/qtwayland | Status: MERGED | +2 | 0 |
299778,1 | Remove uses of QScreen::orientationUpdateMask | dev | qt/qttools | Status: ABANDONED | +2 | 0 |