OverviewV-Play 1 SupportQML properties? › Re: QML properties?

OverviewV-Play 1 SupportQML properties? › Re: QML properties?

V-Play Team

you have two options to store arrays: either in QML files with a variant property, or in JavaScript files.

In your case, it is better to store it in a JS file. The reason is, that changing of variant properties in QML files would need to overwrite the whole array when any of its entries changes which is slower than just modifying the array.

Thus create a js file named something like GameLogic.js and import that file in a qml file where you have access to. Consider this tutorial, which also uses a 2-dimensional-array:


PS: Please write in english so all users can understand

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