Forums

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #7614

    Vlad

    Hi

     

    I’ve testing my app on Sone xperia z tablet, where resolution is 1920×1200 and background image doesnt scaled to the resolution

     

    How I can fix this?

    Thanks

    #7615

    Christian
    V-Play Team

    Hi Vlad,

    did you put your images into the correct +hd2 / +hd  folders as described in the MultiResolutionImage docs?

    You can also have a look at the sample games, which show working dynamic image switching.

    Cheers, Chris

    #7619

    Vlad

    Hi Chris

     

    sure, +hd2 and +hd folders are created

    Also I’ve checked ChikenOutBreak and it has exactly the same problem: background looks ike a small image inthe center of the screen

     

    br,

    Vlad

    #7633

    Christian
    V-Play Team

    Hi Vlad,

    we just checked again, and the demos are working on our Linux test environment (Ubuntu 12.04 32 bit). Did you use the latest demos in the folder <QtSDK>/Examples/V-Play/demos?

    If so, can you please send us the log output when you run Chicken Outbreak?

    Cheers, Chris

    #7639

    Caeser

    Same issue for me. My Multiresolution image seems to be showing only the sd version on the device. A small Image in the centre.

    Built from my mac, tested on a galaxy nexus.

    #7641

    Christian
    V-Play Team

    Hi,

    could you please send us a complete sample project showing the issue to support@v-play.net?

    Cheers, Chris

    #7642

    Vlad

    Hi Chris

     

    as I’ve said – you can use chicken outbreak as a sample

    br,

    Vlad

    #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

Viewing 8 posts - 1 through 8 (of 8 total)

RSS feed for this thread

You must be logged in to reply to this topic.

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