I've created a plugin (MyModule) with a qmldir file which includes "myPlugin.qml"
In my main.cpp, I called QQmlApplicationEngine::addImportPath() to add my plugin path.
Then in my main.qml, I tried to load myPlugin.qml

import MyModule 1.0

Loader {
id: myLoader
source: "myPlugin.qml"

It does not work. Is there a way to load a plugin qml file in the main application? Thx.