Skip to content

easy.Qmldir

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']
}

Just import the easy items first:

import easy as Easy

Then you can use it to pack your qmldir to resources like this:

Easy.Qmldir {
    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:

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