[Interest] controlling QML singleton lifetime from C++
Stefan Seefeld
stefan at seefeld.name
Fri Feb 16 16:36:50 CET 2024
Hello,
as per the Qt documentation (
https://doc.qt.io/qt-6/qqmlengine.html#QML_SINGLETON), I'm using a static
`create()` function to inject an existing C++ object as singleton into the
QML runtime.
I'd like to be able to replace that singleton instance over the course of
the application's workflow, but I couldn't find any indication in the docs
for whether that's allowed, or whether that might lead to undefined
behaviour.
Any idea ?
Thanks,
--
...ich hab' noch einen Koffer in Berlin...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240216/07eea244/attachment.htm>
More information about the Interest
mailing list