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. Questions of utility functions of QtQuick
Qt 6.11 is out! See what's new in the release blog

Questions of utility functions of QtQuick

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.9k 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.
  • thamT Offline
    thamT Offline
    tham
    wrote on last edited by
    #1

    Do QtQuick exist a way to

    1 : Obtain screen resolution
    2 : Switch codes on different platform, likes

    Android{
    //do something
    }
    
    IOS{
    //do something
    }
    

    I remember I saw something similar in Qt blogs, but I forgot what it called.

    1 Reply Last reply
    0
    • GTDevG Offline
      GTDevG Offline
      GTDev
      wrote on last edited by
      #2

      Hi!

      V-Play Engine for Qt-based mobile apps and games comes with many components that allow to create native-looking UIs and a native user experience for both iOS and Android from a single QML code-base.

      If you then want to additionally separate between iOS and Android, you can do so with e.g. the Theme.isIos property:

      import VPlayApps 1.0
      
      App {
        
        AppText {
          text: Theme.isIos ? "This text shows on iOS" : "This text shows on other platforms like Android"
          anchors.centerIn: parent
        }
      }
      

      Hope this helps!

      Best,
      GTDev

      Senior Developer at Felgo - https://felgo.com/qt

      Develop mobile Apps for iOS & Android with Qt
      Felgo is an official Qt Technology Partner

      thamT 1 Reply Last reply
      0
      • GTDevG GTDev

        Hi!

        V-Play Engine for Qt-based mobile apps and games comes with many components that allow to create native-looking UIs and a native user experience for both iOS and Android from a single QML code-base.

        If you then want to additionally separate between iOS and Android, you can do so with e.g. the Theme.isIos property:

        import VPlayApps 1.0
        
        App {
          
          AppText {
            text: Theme.isIos ? "This text shows on iOS" : "This text shows on other platforms like Android"
            anchors.centerIn: parent
          }
        }
        

        Hope this helps!

        Best,
        GTDev

        thamT Offline
        thamT Offline
        tham
        wrote on last edited by
        #3

        @GTDev Do v-play support long term version of Qt5 like Qt5.9?Would v-play release pre-build version of Qt5.9.x? I ask this because new version Qt have more features but also less stable

        1 Reply Last reply
        0
        • GTDevG Offline
          GTDevG Offline
          GTDev
          wrote on last edited by
          #4

          @tham When new Qt versions are officially released, V-Play usually takes some time to prepare the SDK for this version and then also provides an update to switch to the new Qt version. At the moment, V-Play uses Qt 5.9 and Qt Creator 4.3.0.

          It is generally recommended to go with a new Qt version, unless it is not stable enough and there are some problems. It is also possible to get V-Play support for other Qt versions in that case, e.g. with a support package or the included support hours of the paid plans.

          Cheers,
          GTDev

          Senior Developer at Felgo - https://felgo.com/qt

          Develop mobile Apps for iOS & Android with Qt
          Felgo is an official Qt Technology Partner

          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