Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Developing for 2 platforms
Qt 6.11 is out! See what's new in the release blog

Developing for 2 platforms

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 303 Views 1 Watching
  • 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 Offline
    K Offline
    Kris Revi
    wrote on last edited by
    #1

    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 ?

    artwawA 1 Reply Last reply
    0
    • K Kris Revi

      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 ?

      artwawA Offline
      artwawA Offline
      artwaw
      wrote on last edited by
      #2

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

      For more information please re-read.

      Kind Regards,
      Artur

      K 1 Reply Last reply
      1
      • artwawA artwaw

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

        K Offline
        K Offline
        Kris Revi
        wrote on last edited by
        #3

        @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
        1

        • Login

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