Solved How to fix screen orientation to landscape in Qt?
-
Hi all,
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.
-
Hi,
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?Thanks.
-
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
It Worked..