Forums

OverviewV-Play 2 Support (Qt 5) › Mixing 'App' and 'Game Engine' components (VPlay and VPlayApps)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14903

    Ray

    Are there any limitations on using VPlay and VPlayApp components within the same application?

    Consider scenario where the ‘ListPage’ component is used for game settings. If I understand correctly, one possible solution would be ‘App’ component as the root with ‘GameWindowItem’ nested where appropriate. Is the opposite approach also viable, where the ‘GameWindow’ is the root and ‘ListPage’ embedded into one of the scenes (‘Scene’)’?

    #14904

    Günther
    V-Play Team

    Hi Ray!

    Theoretically it is possible to mix the components. However, I can not say for sure which App components will work in Games or vice-verca, as there are some dependencies that might not be able to resolve (especially for App components in a Game context).

    The best thing would be to simply try it and see if it works as expected. For the Page component (and thus also ListPage) I can say, that it has a lot of overhead/dependencies to other Apps components like the Navigation, NavigationStack or NavigationBar. But you can also create a similar UI by using the Qt ListView item. The AppListView, which is used in the ListPage is also based on this item.

    One thing you also have to consider, is that using the import VPlayApps 1.0 also triggers the App Theme to be used. So a game, that is usually fullscreen will for example have a status bar then, unless the Theme.statusbarStyle is set to hide the status bar.

    So overall, I’m not sure if the advantages of combining App and Game items are great enough to outweigh the effort to take care of such issues and test if everything really works well.

    Best,
    Günther

     

     

    #14905

    Christian
    V-Play Team

    Hi Ray,

    in most cases, mixing the two should work (with both scenarios with a root App or GameWindow item). If you run into problems where it is not working, just let us know and we can help fix the problems!

    Cheers, Chris

    #14908

    Ray

    Günther, Chris, thank you for detailed answer!

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