Open arBmind opened 3 years ago
My current state of analysis is:
*_qmltyperegistrations.cpp
and *.qmltypes
. Qt deploys an army of CMake scripts to invoke moc
multiple times to get all these. So far we do not even have CMake build support in the Verdigris project. (QMake cannot do that. I doubt it will be easy in Qbs.)My sketchy plan:
CMakeLists.txt
to Verdigris.qt_add_qml_module
.
cmake
tools provided by Qt.qmltyperegistrations.cpp
equivalent.
.cpp
file.#include
statements with CMake and use some local type registration to effectively do the same..json
compatible to moc and use qmltyperegistrar
to build the qmltyperegistrations.cpp
.Seems kinda impossible.
Qt5.15 introduced new macros to register QObject with the Qml type system. See "QtQml/qqml.h" header:
All these macros use Q_CLASSINFO internally. This can also be done with Verdigris.
Ideas and help is more than welcome!