Re: [Interest] Qt 5.4.x Android and IOS screen orientation lock in code

2015-05-14 Thread mark diener
Hamish: Why not IOS? I would say that if there is someone with a QT based SDK method already to go, I would prefer to do that. I reported my experiences with the 5.4.1 SDK as it stands right now, which means I do not know how to lock the screen to Portrait unless I venture onward to native platf

Re: [Interest] Qt 5.4.x Android and IOS screen orientation lock in code

2015-05-14 Thread Hamish Moffatt
On 15/05/15 08:59, mark diener wrote: > > Now, what will NOT work is setting values and Manifest.xml or Info.plist to > universally prevent orientation changes on all IOS/ANDROID devices. > > I am only looking to lock to portrait on specific types of devices, not all > IOS/ANDROID devices. > > N

[Interest] Qt 5.4.x Android and IOS screen orientation lock in code

2015-05-14 Thread mark diener
Hello: I was scanning the docs and stack exchange and everywhere and could not find an example of how to lock a screen to Portrait ONLY in Qt Code. I tried to lock my Galaxy S2 smartphone to portrait only by issuing: QScreen* gs = QGuiApplication::primaryScreen() ; gs->setOrientationUpdateMask