Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    QML and Qt Quick
    4
    5
    2534
    Loading More Posts
    • 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
      lygstate last edited by

      I want to specify different parameters on different platforms.

      1 Reply Last reply Reply Quote 0
      • p3c0
        p3c0 Moderators last edited by

        Hi,

        Use Qt.platform.os

        157

        1 Reply Last reply Reply Quote 0
        • Q
          qt_sur last edited by

          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 Reply Quote 0
          • A
            andreyc last edited by

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

            1 Reply Last reply Reply Quote 0
            • Q
              qt_sur last edited by

              Awesome. Thanks. Must have missed it.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post