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