[Qbs] How to use texttemplate module?

Christian Kandeler christian.kandeler at qt.io
Wed Sep 9 10:25:04 CEST 2020


On Wed, 9 Sep 2020 00:24:36 +0300
Alberto Mardegan <mardy at users.sourceforge.net> wrote:

> Of course, in my project the product type is not "text"

But it has to be, or at least appear as a dependency of the product type somewhere.
Otherwise there's no path from the source artifact to the product type.
A detailed explanation is here:
https://doc.qt.io/qbs/qml-qbslanguageitems-rule.html#rules-and-product-types

In your concrete product, just add something like this:
    type: base.concat("text")


Christian


More information about the Qbs mailing list