[Interest] QML required property in view delegate - bug?

Ulf Hermann ulf.hermann at qt.io
Fri May 13 14:30:42 CEST 2022

> 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.

More information about the Interest mailing list