Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

[SOLVED] How to disable screen rotation on condition

$
0
0
I think it will require using QAndroidJniObject and calling the native api as the screen rotation is handled by OS. Yeah, thanks, i set it with JNI call of setRequestedOrientation. In AndroidManifest.xml you have option, on which all orientation does the app have to work on. When you check You can see similar like, <activity android:name=“com.android” android:label=“text” android:screenOrientation=“portrait”. … </activity> I know that orientation can be set in manifest, but that about how to change it at runtime.

Viewing all articles
Browse latest Browse all 4972

Latest Images

Trending Articles



Latest Images