Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Call and SMS interruption in QML
theCrazyCrap last edited by
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!
tucnak last edited by
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":http://www.developer.nokia.com/Community/Wiki/Pausing_a_Symbian_app_on_an_incoming_SMS.
- NOKIA forum "thread":http://www.developer.nokia.com/Community/Discussion/showthread.php?232138-How-to-pause-QML-app-when-it-s-in-background-in-QML-1.0
As far as I understood you should use QEventFilter like this:
bool MainWindow::eventFilter(QObject *object, QEvent *event)
case QEvent::WindowActivate: qDebug() << "Window activated"; return true;
case QEvent::WindowDeactivate: qDebug() << "Window DEactivated"; return true;