Is there any way to declare qml singleton? #1320
-
I think that defining QML singleton is done in two parts:
As I understand qmldir is autogenerated, so how can I mark some QML file as a singleton? |
Beta Was this translation helpful? Give feedback.
Answered by
LeonMatthesKDAB
Jul 30, 2025
Replies: 2 comments 1 reply
-
To clarify: my purpose is to have something similar to https://code.qt.io/cgit/qt/qtdoc.git/tree/examples/demos/todolist/imports/ToDoList/Constants.qml?h=6.9 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Unfortunately the CXX-Qt build system does not yet support this, see #654. We have added this to our todo-list for the next release though. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
andrej-urvantsev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately the CXX-Qt build system does not yet support this, see #654.
We have added this to our todo-list for the next release though.