I now saw your nice blog post about this at [1], saying "You should
not call qmlRegisterType() and friends procedurally anymore.".

I then saw that there's no pointer in the docs for qmlRegisterType and
friends [2] to QML_ELEMENT.

There are quite a few links from the qmlRegisterType() family of functions to their macro counter parts. For each one there is a "See also" below it and the macros are documented on the same page.

The general documentation on how to define QML types from C++ can be found at [1]. It only mentions the macros.

[1] https://doc.qt.io/qt-6/qtqml-cppintegration-definetypes.html

best regards,
Ulf
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to