Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
IOS user interface idiom
Phileas42 last edited by
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.
AlexDenisov last edited by
There's also a patch waiting approval that will go in qtmacextras