I am unable to load a qml file from C++:
QQmlComponent component(&engine, QUrl("qrc:/qml/Singletons.qml"));
At the top of this file we have
import My.Module 1.0
The error is (component.errorString()):
plugin cannot be loaded for module "My.Module": Cannot protect module My.Module 1 as it was never registered
My.Module is a plugin containing qml only. It has been successfully loaded using QQmlEngine::importPlugin. The qml components are in a qrc and are compiled. I don't register any types in the plugin itself. This worked for Qt 5.14.1 but doesn't work for Qt 5.15.0