i'm struggling with using a qml module: https://github.com/jwintz/qchart.js.
According to documentation
- I've placed files in $PROJECT/qmlModules/jbQuick/Charts/*.
Added QML_IMPORT_PATH to .pro file.
QML_IMPORT_PATH += ./qmlModules
Now I'm trying to import jbQuick.Charts 1.0,
But QtCreator shows error: module not found
Update
After clean build and rerun of qmake, error editor disappeared, but in runtime I'm getting:
qrc:/analyzer.qml:7 module "jbQuick.Charts" is not installed
Update As mentioned in comments, I've added import paths to main.cpp:
engine.addImportPath(QStringLiteral("qmlModules"));
But the error still exists.
Disabling the shadow build solves the problem. Looks like I missed something in deploy step (copy of qml module's files)
CONFIG += c++11 qml_debug
TEMPLATE = app
QT += qml quick widgets webkit webkitwidgets
HEADERS += VKApi.h \
VKResponse.h \
VKRequest.h \
VKRequestManager.h \
VKProfileAnalyzer.h \
VKGroup.h \
VKDayStats.h
SOURCES += main.cpp \
VKApi.cpp \
VKResponse.cpp \
VKRequest.cpp \
VKRequestManager.cpp \
VKProfileAnalyzer.cpp \
VKGroup.cpp \
VKDayStats.cpp
RESOURCES += qml.qrc
QML_IMPORT_TRACE = 1
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH += ./qmlModules
QML2_IMPORT_PATH += ./qmlModules
# Default rules for deployment.
include(deployment.pri)