Hi all,
is there a way to lock the screen to for all mobile devices to portrait mode only by code?
I found a solution for doing that on android with overriding the standard activity and add code
for a jni call. But I also need that on iOS.
I also tried:
Qt Code:
  1. QScreen* screen = QGuiApplication::primaryScreen();
  2. screen->setOrientationUpdateMask(Qt::PortraitOrientation);
To copy to clipboard, switch view to plain text mode 

but this seems to have no effect, screen is still rotating.
Any ideas?
Thx,
Patrik