Skip to content

Does xmake provide facilities for qt_add_qml_module? #5040

Closed Answered by smac89
smac89 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok my mistake, I should have read this page more carefully. qt_add_qml_module is only available from QT6.2, while I'm on Qt5.

The correct way to register singletons in QT5 is to use the qmlRegisterSingleInstance function, as shown here.

The other method which makes use of QML_ELEMENT, and QML_SINGLETON, are only available from Qt6

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by smac89
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant