Solved Detect orientation changed. How?
-
Hello all!
What is the best way to detect orientation change on device in QT? I've been doing to through native iOS/Java implementation and by detecting width/height change. Is there in Qt standard way to detect it in-box? -
QScreen class has isLandscape /isPortrait functions
-
@LeLev I know it. The question is "to detect orientation change on device in QT". I need to detect event of changing orientation but not the current state of orientation. I mean kind of signal.
-
Solution found https://doc.qt.io/qt-5/qscreen.html#orientationChanged. Issue closed. Example published here