OverviewFelgo 2 Support (Qt 5) › load from asset dir custom qml object

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #19647


    hi ,

    i need to load some binary data and decrypt it from a custom qml object.

    in qml i have a function where i pass in the relative url Qt.resolvedUrl(“../assets/1941_1x.gif”)

    but it does not exists when i open it in QFile in the C++ part.

    i am a bit lost here.


    Felgo Team

    Hi Bas,

    it is possible that Qt.resolvedUrl creates a path which is not compatible with QFile. For example, if the URL includes a file://<your-path> schema, you might need to strip this information from the path and only pass <your-path> to QFile. If you path is a valid absolute path to the file, you should also be able to read it from C++.


Viewing 2 posts - 1 through 2 (of 2 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
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support