Forums

OverviewV-Play 2 Support (Qt 5) › open a game in my application

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14949

    V-Play User

    Hello

    I am trying to open flappy bird game from my application, and I tried to use GameWindowItem But it does not work as expected. it appears as a small window at the top-left.

    can you please tell me how can I do that ?

    #14952

    Günther
    V-Play Team

    Hi!

    I guess you are trying open/load FlappyBird in your application using Loader?

    Whether the game is loaded within the application or in a new window simply depends on what you load.
    The FlappyBirdMain.qml item for example is a GameWindow, which results in a new window opening up when loading.
    However, the game itself and all the relevant code is handled by MainItem.qml, which you can use to load the game without a new window opening up:

      Loader {
        source: "<path-to-FlappyBird>/qml/MainItem.qml"
      }

    Hope this helps!

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 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
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