> instantiate a non-singleton type declared in C++ rather than referencing
yet another singleton

How is instantiating a new c++ instance each time faster than referencing a
c++ side singleton??

On Mon, Oct 23, 2023 at 5:44 PM Ulf Hermann <ulf.herm...@qt.io> wrote:

> > 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
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to