IOS user interface idiom
-
wrote on 2 Dec 2013, 10:41 last edited by
Hello everyone,
I just started to deal with Qt for iOS, so can some one help me with next question:
How can I detect User Interface Idiom? Should I use QScreen::availableSize() or there are more elegant solutions?
Some thing like in Objective-C:
[[UIDevice currentDevice] userInterfaceIdiom]Thanks in advance
-
Hi and welcome to devnet,
AFAIK, Qt doesn't provide an equivalent to userInterfaceIdiom. But you can use it in your code without any problem.
-
wrote on 14 Dec 2013, 10:17 last edited by
@Phileas42, I've just published simple wrapper for this stuff.
You can find it here https://github.com/AlexDenisov/QiOS -
There's also a patch waiting approval that will go in qtmacextras