Loads qml level files derived from LevelBase dynamically. More...

Import Statement: import VPlay 2.0




Detailed Description

The LevelEditor uses the LevelLoader element to load levels derived from LevelBase with a call of LevelEditor::loadSingleLevel() or LevelEditor::createNewLevel().

These LevelBase components contain static elements that differ between levels. For example, these levels might exist:

 // Level01.qml:
 LevelBase {
   property int startGold: 30

 // Level02.qml:
 LevelBase {
   property int startGold: 50

You can then use these LevelBase components when creating a new level with LevelEditor::createNewLevel(): add the levelBaseName (for dynamic levels) or the levelBaseUrl (for static levels) as a parameter of levelMetaData and the correct level gets loaded automatically.

Additionally, enter the valid levels either to the LevelEditor::levelBaseNameToUrlMap property in case of dynamic levels, or to the qmlLevelList in case of LevelEditor::applicationQMLLevels.

Property Documentation

loadedLevel : alias

Holds the currently loaded LevelBase item. If none is loaded it has the default value null.

You can access properties within the LevelBase through this property.

Signal Documentation


This handler is called when an error occured at loading the level, e.g. the wrong .


This handler is called when the level was successfully loaded.


This handler is called when the level is currently loading.

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