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. I want to pause my application .

I want to pause my application .

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 5 Posters 3.9k Views
  • 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.
  • D Offline
    D Offline
    DanSiddiqui
    wrote on last edited by
    #1

    I want to pause my application(game) when user click mobile's camera button or mobile receives calls or some external events.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      theoriginalgri
      wrote on last edited by
      #2

      Don't beat me with too much information. That's not even a question yet ;)

      What kind of system are you programming for? MeeGo? Symbian? Android?

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DanSiddiqui
        wrote on last edited by
        #3

        i am developing application using Qt (Qml) for symbian^3 devices, i want to pause my running game if user click some invalid button like mobile's camera button.

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

          you want to capture camera button press event or you want to know how to implement logic for pausing the game ?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            digitalsurgeon
            wrote on last edited by
            #5

            I am not sure, haven't tried this, but try messing with onVisibleChange.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DanSiddiqui
              wrote on last edited by
              #6

              I want to capture all event which make my application Inactive and out-focus.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                manishsharma
                wrote on last edited by
                #7

                May be

                QEvent::ApplicationActivated
                QEvent::ApplicationDeactivate

                ?

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DanSiddiqui
                  wrote on last edited by
                  #8

                  yes manishsharma, i have put following code on my application [if/else condition] to handle Active and on InActive mode.

                  [myobject]= Qt.application.active ? "true" : "false";

                  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