My app uses both c++ and QML.
I\'ve defined several objects in C++ part to access SQL etc.
It looks like:
Your object isn't a Component, but you can use Qt.createQmlObject instead.
Component