[Qbs] dynamically add properties?

Christian Kandeler christian.kandeler at qt.io
Thu Mar 2 13:39:07 CET 2023

On 3/2/23 13:30, Heiko Nardmann wrote:
> how do I use "Object.defineProperty" to add a new property to the 
> 'product' of a Rule? I've tried several things but most times I just 
> get some "undefined" for the property set.
The product variable represents  a Product item with its properties. You 
must not mess with it in JS code.


More information about the Qbs mailing list