[Development] QTCS2019 Notes from QtQml session

Ulf Hermann ulf.hermann at qt.io
Mon Nov 25 12:31:54 CET 2019

> I think one of the biggest problems is that ID resolution crosses
> file boundaries. This essentially means that the ids chosen can very
> easily become part of the "API" of a component unless you are very
> vigilant to not allow that to happen.

Well, yes, and there is an easy way to fix this: Deprecate id lookup 
across file scope. id lookup is actually the same as context property 
lookup right now. That's what you're seeing there. We cannot get rid of 
IDs, obviously, but we can restrict their use to the file context and 
not search the whole context hierarchy.


More information about the Development mailing list