Skip to content
Sandeep edited this page Oct 28, 2019 · 4 revisions

There are two different ways to bundle assets with your application. One is best suited for bigger assets or assets that need to live outside your application binary (i.e. videos or application icons). The other is best suited for smaller assets or assets that can profit from being embedded into your binary (i.e. small images or *.qml/*.ui files).

Bundling assets alongside your binary using deployment folders

To deploy assets alongside your binary, you just need to create a folder with the same name as your deployment target inside the root folder of your project. Then simply place all the assets you wish to be bundled for the target into the right target folder. During deployment, qtdeploy will automatically pickup the target specific assets from the corresponding folder and deploy them alongside your binary.

Target Folder
Windows windows
Linux linux
Android (+Wear) android
Android-Emulator (+Wear) android-emulator
Raspberry Pi (1/2/3) rpi1 or rpi2 or rpi3
SailfishOS sailfish
SailfishOS-Emulator sailfish-emulator
Ubuntu Touch ubports
JavaScript js
WebAssembly wasm
macOS darwin
iOS ios
iOS-Simulator ios-simulator
AsteroidOS asteroid

You can find some examples here

Embedding assets into your binary using qtrcc

Please take a look at qtrcc for more infos about how to embeed assets into your binary.

Clone this wiki locally