<div dir="ltr"><span class=""></span><br><span class=""></span><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
</span>Custom properties are collected and made accessible in rules for the Product, Project and Modules items.<br>
For all other items, only the built-in properties are retrieved and acted upon according to their documented semantics.<br>
<span class=""><br></span></blockquote><div><br></div><div>Right. What's the reasoning why custom properties aren't generally allowed? I would like an error message from qbs if I create a custom property somewhere that cannot be used, at least. I'm quite used to writing regular Qt Quick qml and this is then unexpected. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> My use-case here is that in another Product I plan to do this:<br>
> import "myrule.qbs" as MyRule<br>
> ...<br>
> MyRule { myProperty: "1" }<br>
> MyRule { myProperty: "2" }<br>
> MyRule { myProperty: "3" }<br>
> MyRule { myProperty: "etc" }<br>
<br>
</span>Yes, I can see how that could be useful (see also the TODO item in CppModule.qbs). You might want to create a task in our bugtracker.<br></blockquote><div><br></div><div>I'll do that. Thanks,<br><br></div><div>Ola<br><br><br></div></div></div></div>