First of all, below shows how to instantiate your cpp objects in qml
@
import my.app.MyQObject 1.0
item {
MyQObject {
id:obj
}
}
@
I thought Object.create will work, but no.
Second, in QML apparently your MyQObject, as well as other QML elements all have type of object.
it doesn't even have prototype.. so it behaves sortof like a builtin object
If you need reflection, check objectName property. Any exported QObject will have that property by default. This seems the case since Qt 5.0
So instead of typeof(obj), use obj["objectName"]