Hello,
the lines :
#include <QtQml/qqmlextensionplugin.h>
Q_IMPORT_QML_PLUGIN(MyPluginPlugin)
in MyPluginTest/main.cpp are not necessary.
According to you, is there a way to do the same thing without having to redeclare the module in MyPluginTest with the qt_add_qml_module?