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. Help with the incoming calls
Qt 6.11 is out! See what's new in the release blog

Help with the incoming calls

Scheduled Pinned Locked Moved Game Development
2 Posts 2 Posters 2.1k 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
    tommyj23
    wrote on last edited by
    #1

    Hello, I´m new in Qt, i´m creating a game in Qt for symbian platform, I have 2 states when the game is running, the normal state, is running, and the paused state, the question is when I suspend the game I want to change the state to pause, but I suspend the game or when incomming a call the game is still running, not paused, what code I use to make that when I suspend the aplication this change to the pause mode? Im writting the game in qml and the logic is in java, but the states are in the qml file using
    states: [

         State {
             name: "pause"
             PropertyChanges { ....}
         },
    

    State {
    name: "running"
    PropertyChanges { .... }
    }
    ]

    thanks for all :)

    1 Reply Last reply
    0
    • R Offline
      R Offline
      raja26
      wrote on last edited by
      #2

      I think the best way to do it will be, pause the game when it loses focus or when the application being sent to the background. And the application logic is in JavaScript.

      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