Skip to content

EasyQmldir

Allows to easily match the qmldir file generated by the module. More…

Inherits Group

Detailed Description

This item allows you to use the output of the module as an input for further rules.

Internals

Essentially, it’s just a Group that matches files with the output tag:

Group {
    fileTagsFilter: ['easy.qmldir.qmldir']
}

You can use it to pack your qmldir to resources like this:

EasyQmldir {
    Qt.core.resourcePrefix: '/qt/qml/easy/qmldir/example/'
    fileTags: ['qt.core.resource_data']
}

Or you can use it to install a qmldir into some specific folder:

EasyQmldir {
    qbs.install: true
    qbs.installPrefix: 'HelloWorld.app/Contents/Imports/org/example/'
}