[QBS] Ambiguous behaviour

Christian Kandeler christian.kandeler at theqtcompany.com
Tue Feb 10 15:07:02 CET 2015


On 01/20/2015 01:33 PM, Alexander Giss wrote:
> 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/"
> }
> }

Please paste real code (stripped down to the essentials from your actual 
project, if possible). The one above has e.g. a Group item directly 
under a Project, which can never work.


Christian




More information about the Qbs mailing list