[Interest] Qml/qmlllint: coercion / typecasts possible?

Nils Jeisecke nils.jeisecke at saltation.com
Mon Aug 21 18:02:18 CEST 2023


Hi  Ivan,

thanks for your response (didn't go to the mailing list I think?).

On Mon, Aug 21, 2023 at 5:45 PM ivan tkachenko <gmail at ratijas.tk> wrote:
> QML Engine offers one syntax expansion compared to regular ECMAScript
> standard: the "as" operator.

I've tried that. But it does not seem to work with locally defined
components, like "Foo" in my example.

After changing Foo into an external component, it actually works!

Thank you!

Nils


More information about the Interest mailing list