Please read document about “Defining QML Types from C++”. “Any QObject-derived C++ class can be registered as the definition of a QML object type. Once a class is registered with the QML type system, the class can be declared and instantiated like any other object type from QML code.”
QML objects are created by QML engine according to QML documents.
QML Engine Internals, Part 1: QML File Loading [kdab.com]
↧