Forums

OverviewV-Play 2 Support (Qt 5)background image on android device with resolution 1200 x 1920 doesnt scaled › Reply To: background image on android device with resolution 1200 x 1920 doesnt scaled

OverviewV-Play 2 Support (Qt 5)background image on android device with resolution 1200 x 1920 doesnt scaled › Reply To: background image on android device with resolution 1200 x 1920 doesnt scaled
#7643

Christian
V-Play Team

We’ve found the issue:

in the last default demo configuration in main.cpp, the demo is started not from the qrc file but from DEPLOYMENTFOLDERS.

On Android, this leads to the Qt File Selectors not working, which is the reason why we recommend loading your qml files & assets from qrc.

So by uncommenting this line in main.cpp:

vplay.setMainQmlFileName(QStringLiteral("qrc:/qml/ChickenOutbreakMain.qml"));

using the MultiResolutionImage works. Also see the comments in main.cpp and the .pro file regarding this topic.

Cheers, Chris

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