ok, I am answering myself. I was able to build a C++ plugin module which contains the QML files as resources and publishes them via
const QUrl tileUrl
("qrc:NavigationTile.qml");
qmlRegisterType(tileUrl, uri, 1, 0, "NavigationTile");
const QUrl panelUrl
("qrc:NavigationPanel.qml");
qmlRegisterType(panelUrl, uri, 1, 0, "NavigationPanel");
const QUrl tileUrl("qrc:NavigationTile.qml");
qmlRegisterType(tileUrl, uri, 1, 0, "NavigationTile");
const QUrl panelUrl("qrc:NavigationPanel.qml");
qmlRegisterType(panelUrl, uri, 1, 0, "NavigationPanel");
To copy to clipboard, switch view to plain text mode
unfortunately, I also had to register helper QML files which I did not want to publish, but otherwise the above files would not execute. Now, If I could also do away with the qmldir file, I would have a neat and compact module publishing mechanism.
Bookmarks