[Qbs] Accessing properties from a parent project

Jochen Becher jochen_becher at gmx.de
Thu Jul 10 11:18:17 CEST 2025


Am Donnerstag, dem 10.07.2025 um 11:08 +0200 schrieb Christian Kandeler
via Qbs:
> On 7/10/25 11:03 AM, Jochen Becher via Qbs wrote:
> > Project {
> > 	property bool mySetting: true
> > 
> > 	Project {
> > 		property bool mySettings: parent.mySetting ?
> > parent.mySetting : false
> > 	}
> > }
> > 
> > In the past this worked but with qbs 3.0.0 is is no longer
> > accepted.
> 
> What do you mean by "accepted"?

Error message is "Property 'mySetting' refers to itself".

> 
> > How can I access a property of the same name from a parent project?
> 
> In your example, the properties do not have the same name.

Sorry, typo. both should be mySetting.

> 
> 
> Christian
> 
> 
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> https://lists.qt-project.org/listinfo/qbs



More information about the Qbs mailing list