Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] How to use QML to test which OS/platform the app is running on?

[SOLVED] How to use QML to test which OS/platform the app is running on?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 3.0k 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.
  • L Offline
    L Offline
    lygstate
    wrote on last edited by
    #1

    I want to specify different parameters on different platforms.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      Use Qt.platform.os

      157

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qt_sur
        wrote on last edited by
        #3

        Quick question: Is this documented anywhere (couldn't find it anywhere)? I'm just concerned that if I use this in my application and deploy it, the behavior might change in the future releases.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          "Here":http://qt-project.org/doc/qt-5/qml-qtqml-qt.html#platform-prop is a doc.

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qt_sur
            wrote on last edited by
            #5

            Awesome. Thanks. Must have missed it.

            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