Qt Forum

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

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Solved Developing for 2 platforms

    General and Desktop
    2
    3
    91
    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.
    • K
      Kris Revi last edited by

      im making my app for android tablet and desktop! is there a check i can make to see if the app is running on android or desktop so that i can make adjustments to the UI according to OS / device ?

      artwaw 1 Reply Last reply Reply Quote 0
      • artwaw
        artwaw @Kris Revi last edited by

        @Kris-Revi https://doc.qt.io/qt-5/qsysinfo.html ?

        For more information please re-read.

        Kind Regards,
        Artur

        K 1 Reply Last reply Reply Quote 1
        • K
          Kris Revi @artwaw last edited by

          @artwaw ty :)

          #if defined(Q_OS_ANDROID)
          qDebug() << "ANDROID";
          #elif defined(Q_OS_LINUX)
          qDebug() << "LINUX";
          #elif defined(Q_OS_WIN32)
          qDebug() << "WIN32";
          #endif
          
          1 Reply Last reply Reply Quote 1
          • First post
            Last post