Forums

OverviewV-Play 2 Support (Qt 5)QTD on "Leaderboard info OK" › Reply To: QTD on "Leaderboard info OK"

OverviewV-Play 2 Support (Qt 5)QTD on "Leaderboard info OK" › Reply To: QTD on "Leaderboard info OK"
#8827

Christian
V-Play Team

Hi Martin,

you might have an issue in your game code, where you handle to the onMessageBoxFinished dialog of nativeUtils, and then call Qt.exit().

Do you check if the dialog was opened from the back-button handling? I

In the sample games, we do set a bool property to true or check if this is the active scene. This code is copied from the Flappy Bird demo for example:

Connections {
      // nativeUtils should only be connected, when this is the active scene
      target: window.activeScene === menuScene ? nativeUtils : null
      onMessageBoxFinished: {
        if(accepted) {
            Qt.quit()
        }
      }
    }

 

Cheers, Chris

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
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support