OverviewFelgo 2 Support (Qt 5) › Pause on onApplicationPaused:

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #12306


    Hi again,

    I am making my games with the structure from the tutorial Multi level Multi Scene…

    And, there is Main.qml where GameWindow is written…

    And, there is gameScene.qml where the game scene is working…

    I want to pause my game on ph call coming…

    And, there is already a pause method in gameScene used for pause button and already tested.

    So, I add the following code in Main.qml but nothing is working…


    I tried to add other codes but absolutely nothing is working…

    Is onApplicationPaused: not working?

    Help me please…



    I got it. This method only triggered only when user picks up the phone or reads the msg. But, I also want to pause the game even if user doesn’t pick up the phone or open the msg. How can I implement that?


    Felgo Team

    Hi Cho!

    We currently only provide these two signals for pausing or resuming. They are fired based on changes in the Qt.application.state.
    You can create a similar handler yourself:

    Connections {
        target: Qt.application
        onStateChanged: {
          console.debug("App state changed to", Qt.application.state)

    Maybe you can use this to detect an incoming call also based on a state change. If an incoming call doesn’t cause a state change, I guess a more native approach is needed (e.g. trying to detect an incoming call with native Android Java code, but this won’t run cross-platform then).



Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support