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. [SOLVED]How to know that my application went to the background on N950?
Qt 6.11 is out! See what's new in the release blog

[SOLVED]How to know that my application went to the background on N950?

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 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.
  • M Offline
    M Offline
    mismail
    wrote on last edited by
    #1

    Hi all,

    How can I know that my application minimized to the background on N950?
    I tried @Page{
    onStatusChanged:{
    console.log("status changed)
    }
    }@

    but without any result , I always got
    bq. Meego graphics system destroyed

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

      may be you need this

      http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Library_Essential_concepts_for_Harmattan_developers_Application_fundamentals_Application_lifecycle.html

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mismail
        wrote on last edited by
        #3

        I solved it.
        I made a timer and check if the application is active or not through this property
        Qt.application.active

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Using a timed event instead of a signal/slot connection is more cpu heavy.

          @Connections {
          target: platformWindow
          onActiveChanged: {

                  if (platformWindow.active)
                  {
                      //App became active
          
                  }
          
                 else
                 {
                    //App became inactive
                 }
              }
          }@
          

          Or you may simply use data binding since platformWindow.active is a boolean.

          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