Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Call and SMS interruption in QML
Forum Updated to NodeBB v4.3 + New Features

Call and SMS interruption in QML

Scheduled Pinned Locked Moved Game Development
2 Posts 2 Posters 1.5k 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.
  • T Offline
    T Offline
    theCrazyCrap
    wrote on last edited by
    #1

    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 Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      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":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)
      {
      switch(event->type()) {
      case QEvent::WindowActivate: qDebug() << "Window activated"; return true;
      case QEvent::WindowDeactivate: qDebug() << "Window DEactivated"; return true;
      default:
      return 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