I'm trying to use the QML-material library in a Qt Quick Application.
But when I try to use the import code it says
module "Material" is not installed`
import Material 0.1
I did also try this but that seems not to work:
import "modules/Material" as Material
qml.qrc
looks like this, all qmldir
files are listed:
main.qml modules/Material/qmldir modules/Material/Extras/qmldir modules/Material/ListItems/qmldir modules/QtQuick/Controls/Styles/Material/qmldir
main.cpp
#include #include int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.addImportPath("qrc:/"); engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); return app.exec(); }
Is there something I'm missing or is it not possible to use qmldir
in qrc
file?