- 
    Bug 
- 
    Resolution: Invalid
- 
    P2: Important 
- 
    None
- 
    5.2.0 RC1
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.