[QBS] Ambiguous behaviour

Alexander Giss alez1986 at gmail.com
Tue Jan 20 13:33:15 CET 2015


Hello,
I was making my project when I realized that in code below Properties{}
item works without errors and Group{} give a error undefined variable
'project_type'.
As I understand it should be project.project_type in both cases, but
Properties{} works in this case too.

import qbs

Project {
property string project_type: ""

Properties {
condition: project_type === "qwerty"
}

Group {
condition: project_type === "qwerty"
files: [ "formedit-16x16.png" ]
qbs.install: true
qbs.installDir: "share/icons/"
}
}


With best regards,
Alex Giss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150120/9976af34/attachment.html>


More information about the Qbs mailing list