Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Is there a way to check if the orientation of screen changes during runtime with QML?



  • Hi,

    I am building a UI in QML for tablets. I want to define 2 different modes: landscape and portrait.
    Is there a way to check during runtime, if the orientation has changed hence the IU will switch to landscape mode.

    Is there any good article about this topic, or if anyone can explain in main points/hints which functions to check, would be very appreciated.

    Thank you all for your answers


Log in to reply