[SOLVED] Force Screen Orientation Android to Landscape
-
How can I force set the orientation to Landscape in a mobile app and not make it possible to revert to portrait again? I have been looking at many examples, but they don't seem to work. Any help is appreciated.
-
@nanoandrew4
yes, you can do that!-
go to your project->android folder
-
find AndroidManifest.xml file and open it.
-
find the line
android:screenOrientation=
"landscape"
-
-
@vishnu There is no android folder, It is not QML if that is relevant, I just made it QWidget. Is it preferable to use QML?
-
Hi,
The "Editing Manifest Files" in Qt Creator's android deployment guide explains how to generate it.
-
@SGaist Thank you so much, it's my first time with mobile and I'm still working it out. It worked perfectly, and also thank you for answering so quickly!
2/5