Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to fix screen orientation to landscape in Qt?
I have written a simple Qt Application and it runs on Android device. The Application is designed to use in landscape mode and I want to fix it. That means if I rotate my device the screen should also stay in landscape. The user has only the chance to use in landscape.
Thanks a lot.
That's something you do in the Android manifest file. You can generate from Qt Creator and edit it there to lock the screen orientation.
Thaks for your valuable reply @SGaist ...
As I am a beginner to Qt so can you please give me detail information about it....
Hi Thanks for your reply @SGaist ...
Is there any way to do this using programatically apart from changing in manifest file?
I'm not aware of such a possibility directly from Qt (doesn't mean it doesn't exists though)
You might have to write a bit of Java for that.
Thank You so much @SGaist