September 26, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

I want to pause my application .

 

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

7 replies

September 26, 2011

gri gri
Lab Rat
39 posts

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?

September 26, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

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.

September 29, 2011

Kunal Parmar Kunal Parmar
Lab Rat
18 posts

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

September 29, 2011

digitalsurgeon digitalsurge..
Lab Rat
15 posts

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

September 29, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

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

September 29, 2011

manishsharma manishsharma
Lab Rat
11 posts

May be

QEvent::ApplicationActivated
QEvent::ApplicationDeactivate

?

October 19, 2011

DanSiddiqui DanSiddiqui
Lab Rat
90 posts

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”;
 
  ‹‹ [SOLVED] Grouping and referencing dynamically created QML objects      Is There Any XML Parser Provided for QML JavaScript. ››

You must log in to post a reply. Not a member yet? Register here!