registering a new QML type

C++
 qmlRegisterType<MyClass>("MyClass", 1,0, "MyClass");
Source

Also in C++: