C

BinaryFiles.MCU.prefix

Adds a common prefix to the binary resource URI.

Description

The prefix node adds a common prefix to the URI that's used to access the assets.

Usage

This property is accepted in the main application .qmlproject file, or a module .qmlproject file. It takes a string.

Code example:

# In myproject.qmlproject file
BinaryFiles {
    // Specify the prefix for resources declared within the current node
    MCU.prefix: "assets"
    files: ["map/dataset.bin"]
}

# In C++
Qul::BinaryResource dataset("assets/map/dataset.bin");

Since

This property was introduced in Qt Quick Ultralite 2.9.

Available under certain Qt licenses.
Find out more.