Ah ok, I see, thank you. 

Any thoughts on my 2nd point on the case when a delegate includes an item 
containing required properties itself (while the delegate doesn’t have any)?

Benjamin 

> Le 13 mai 2022 à 14:30, Ulf Hermann <ulf.herm...@qt.io> a écrit :
> 
> 
>> 
>> Which raises the error "ReferenceError: model is not defined", as 
>> documented. Is there a way around this?
> 
> Just add the the "noise" property as another required one and don't access 
> "model" in the delegate. You can do that where you assign to the "text" 
> property. This way it doesn't require you to change SomeDelegate itself. 
> Required properties in delegates are all-or-nothing. You cannot mix them with 
> the traditional way of injecting model data into the context.
> 
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to