[Interest] How to avoid qml engine repeatedly copying and garbage collecting qstringlists?
Ulf Hermann
ulf.hermann at qt.io
Mon Oct 23 16:44:32 CEST 2023
> So do I use `pragma Singleton` to wrap a c++ singleton into a qml one
> declaring such a var property?
That would be one way to do it. I don't know what your singleton looks
like. Maybe it can be defined in QML and instantiate a non-singleton
type declared in C++ rather than referencing yet another singleton. That
would probably be faster.
best regards,
Ulf
More information about the Interest
mailing list