Forums

OverviewV-Play 2 Support (Qt 5)Using SQLite with V-PLay › Reply To: Using SQLite with V-PLay

OverviewV-Play 2 Support (Qt 5)Using SQLite with V-PLay › Reply To: Using SQLite with V-PLay
#9226

Alex
V-Play Team

Hi,

Unfortunately that’s not that easy as QML databases are always read from a specific location.

If you want to use an existing database you have to copy it to a write-able location initially. Just bundle the database with your application and then copy it to the engine’s offline storage path (where all databases opened from QML are stored) retrieved with “engine.offlineStoragePath()” from your main.cpp file (you can also check if it already exists to prevent an overwrite by accident).

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