Forums

OverviewV-Play 2 Support (Qt 5)Nested Scenes / Making a picture-in-picture function › Reply To: Nested Scenes / Making a picture-in-picture function

OverviewV-Play 2 Support (Qt 5)Nested Scenes / Making a picture-in-picture function › Reply To: Nested Scenes / Making a picture-in-picture function
#11863

Alex
V-Play Team

Hi Ben,

I’m not sure if I got your use case quite right, so you basically try to give a “real-time” preview of every stage within your overview scene?

Every game should use at most one GameWindow item and a set of Scene items as direct children (scenes should not be stacked into each other as already found out).┬áSo for your use case it’s probably best to just use a scene for listing all your stages (e.g. “StagesScene”) and put all the individual stages into an Item (or Rectangle or whatever) wrapper item. You can reuse these items in your concrete “GameScene” later on).

Here is a short listing of the idea behind it:

StagesScene:

Scene {

  // List your stages
  Column {
    Stage {}
    Stage {}
    Stage {}
  }
}

GameScene:

Scene {
  Stage {}
}

Stage:

Item {
  ...
}

Does this make sense to you?

Best,

Alex

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