W
W
Whiteha2015-03-25 19:25:49
Mobile development
Whiteha, 2015-03-25 19:25:49

How to disable orientation change for QML application?

How, when creating a qml application, can we set the portrait orientation for the entire program and prohibit changing it?
Googling is surprisingly fruitless.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antony, 2015-03-25
@RiseOfDeath

I immediately put one to such prohibitors in the playmarket, because they are sick of it.
In general, Google says that you can do this through the manifest. For example:

<activity android:configChanges="orientation|locale|fontScale|keyboard|keyboardHidden|navigation" android:label="@string/app_name" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:screenOrientation="portrait">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question