Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Compiling assets into binaries

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17356

    Kool

    Hi All,

    I’ve set up my publish build which compiles all qml into the binary. I noticed that the assets are kept separate.

    Is there a way to compile the assets (images and audio) into the binary, too?

    Many thanks!

    #17377

    Günther
    Felgo Team

    Hi Kool,

    there are two ways to bundle your files with Felgo, in you *.pro project configuration you can:

    • Use DEPLOYMENTFOLDERS to copy your files to the application assets
    • Use the RESOURCES system to compile the files specified in your *.qrc configuration with the application

    You can also switch to the RESOURCES system instead of DEPLOYMENTFOLDERS for assets.

    Best,
    Günther

    #17378

    Kool

    Hi Gunther,

    Do the above still allow me to use the relative paths for files in qml (i.e. AppImage::source using a relative path back to the assets folder)?

    Many thanks!

    #17379

    Günther
    Felgo Team

    When using the QRC system, what counts is not the actual path in your file system, but the path specified in your QRC file. If the QRC setup for your qml and assets matches same paths, the relative paths in your QML will also work.

    If you run into troubles with setting the asset source, please try using Qt.resolvedUrl(“path-to-source”).

    Best,
    Günther

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

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded