I need to use same C++ object as type in several QML files.
in C++ main I have
qmlRegisterType<ConnectionNotifier>("MyConnectionNotifier", 1, 0, "ConnectionNotifier");
In qml I have
import MyConnectionNotifier 1.0
If I do it in several qml file then it will create many C++ objects that I don't like. Can I pass my own element some how to other qml file that can use it?
Any other options?