Forums

OverviewV-Play 2 Support (Qt 5)MultiResolutionImage source property binding › Reply To: MultiResolutionImage source property binding

OverviewV-Play 2 Support (Qt 5)MultiResolutionImage source property binding › Reply To: MultiResolutionImage source property binding
#10447

spike

qrc:

<RCC>
    <qresource prefix="/assets">
        <file alias="pic.png">assets/pic.png</file>
    </qresource>
    <qresource prefix="/assets/+hd">
        <file alias="pic.png">assets/+hd/pic.png</file>
    </qresource>
    <qresource prefix="/assets/+hd2">
        <file alias="pic.png">assets/+hd2/pic.png</file>
    </qresource>
</RCC>

 

MultiResolutionImage {
  source: jsonObject().source
  onSourceChanged: {
    console.log("Source: %1".arg(source))
  }
}

function jsonObject() {
  return { source: "qrc:/assets/pic.png" }
}

 

This is 100% reproducable.

  • This reply was modified 2 years, 11 months ago by  supaiku.

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