Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. IOS user interface idiom

IOS user interface idiom

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phileas42
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AlexDenisov
        wrote on last edited by
        #3

        @Phileas42, I've just published simple wrapper for this stuff.
        You can find it here https://github.com/AlexDenisov/QiOS

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          There's also a patch waiting approval that will go in qtmacextras

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved