June 27, 2012

theCrazyCrap theCrazyCrap
Lab Rat
12 posts

Call and SMS interruption in QML

 

Good day! I creating a mobile game for S60.. My professor required me to have an interruption when there is a call or text message received. For example, while playing the game the game will be paused and be able to received the call. Just like in the SMS. Is it possible to the that? Thank you for your replies!

1 reply

June 27, 2012

tucnak tucnak
Robot Herder
384 posts

Hi, ~theCrazyCrap.

I am not Mobile Game Developer but I know how to find in Google. I found for you some links where you may find information you need:

  • NOKIA developers Wiki article [developer.nokia.com].
  • NOKIA forum thread [developer.nokia.com]

As far as I understood you should use QEventFilter like this:

  1. bool MainWindow::eventFilter(QObject *object, QEvent *event)
  2. {
  3.      switch(event->type()) {
  4.           case QEvent::WindowActivate: qDebug() << "Window activated"; return true;
  5.           case QEvent::WindowDeactivate: qDebug() << "Window DEactivated"; return true;
  6.      default:
  7.           return false;
  8.      }
  9. }

 Signature 

Qt Developer (upper-intermediate)
PHP/JS Developer (intermediate)

 
  ‹‹ Check username/password through a PHP file      GL Debug Context with Qt 5 ››

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