[Interest] QML: Considerations on an interesting design pattern that relies on JS engine's garbage collection

Ulf Hermann ulf.hermann at qt.io
Mon Apr 14 17:18:48 CEST 2025


> Is this feasible? It is not good to have exceptions for specific types,
> but `Component` is already a special type, so that seems fair.

I'm actually trying to make it less special, not more so.

Yet, following your arguments, one could actually make any element that 
doesn't have an ID destructible. That would be a pretty drastic change, 
but it could be hidden behind a pragma.

Certainly an interesting idea, but ultimately you don't want to create 
those elements in the first place. When I'm going to fix this, I think I 
will start there.

I'm always happy to review patches, though.

best,
Ulf


More information about the Interest mailing list