[QBS] Get property from parent project

olivier musse olivier.musse at sfr.fr
Thu May 22 13:26:43 CEST 2014


I have a project with subproject and so on.
When in a product or a subproject, how to access parent project 
properties. Sometimes it seems to be "project.MyProperty", sometimes 
Is there any documentation to clarify this point?

As an example

Project {
     property string myprop1 : "val1"

         property string myproductprop
         Depends{name:project.myprop1}     //in this case seems the 
project prefix is needed
         myproductprop:myprop1 //in this case with project prefix it 
does not work and seems to works without it

Many thanks in advance for help.



More information about the Qbs mailing list