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. Suspending a QML app in the background

Suspending a QML app in the background

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 3.4k 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
    krishkn
    wrote on last edited by
    #1

    How to suspend a executing application in the background and continue executing after a while in QML code ? say user wants to run some other app and come back to the same app ....

    Regards,
    Krishkn

    1 Reply Last reply
    0
    • K Offline
      K Offline
      krishkn
      wrote on last edited by
      #2

      To make it even clear...say if i run my app on mobile, user may want to run some other app while the current app will be in suspended mode,till he reactivates it again . could it be done through QML code by putting some Timer ?

      Regards,
      Krishkn

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bbshettygmail.com
        wrote on last edited by
        #3

        If you are trying in QtQuick 1.1, you could use Qt.application.active to check if application is active or not. Otherwise you could listen for QEvent::ApplicationActivate, QEvent::ApplicationDeActivate in your cpp code and then communicate it to qml objects in your QtQuick app

        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