1 #include "myplugin.h" 2 #include "mytype.h" 3 registerTypes(const char * uri)4 void MyPlugin::registerTypes(const char *uri) 5 { 6 // @uri mymodule 7 // bp here should be hit on startup 8 qmlRegisterType<MyType>(uri, 1, 0, "MyType"); 9 } 10 11 Q_EXPORT_PLUGIN(MyPlugin) 12