Qt module not installed in QtDesigner
-
@Diracsbracket but if u check in QT instalation folder in /qt/version/gcc_64/ there is all module that u installed, maybe qtcreator not using that path so qtcreator got that warning. if u check in /qt/Tools/QtCreator/lib/Qt/qml ,that folder not contain all module maybe just base module.
-
@Diracsbracket i tried to compile plugin qtchart again from source and get libqtchartdesigner.so then i put in path gcc_64/plugins/designer, after that i run designer from gcc_64/bin/ (standalone), and i got qt chart chartview widget, but still not have qtchart widget in qt quick designer(qt creator). :D im still tried how this application works perfectly haha. maybe because configuration path in qml emulation layer, but i dont know what it is :D
-
@Diracsbracket me too bro, but im curious with that warning, im using designer just want to know how my app looks like, without waiting for compilation. :D because the more complex the application is the longer the compilation.
-
@Diracsbracket thank bro for your infomation. :D
-
int main(int argc, char *argv[]) { // Qt Charts uses Qt Graphics View Framework for drawing, therefore QApplication must be used. QApplication app(argc, argv); QQuickView viewer; // The following are needed to make examples run without having to install the module // in desktop environments. #ifdef Q_OS_WIN QString extraImportPath(QStringLiteral("%1/../../../../%2")); #else QString extraImportPath(QStringLiteral("%1/../../../%2")); #endif viewer.engine()->addImportPath(extraImportPath.arg(QGuiApplication::applicationDirPath(), QString::fromLatin1("qml"))); //***** [Solve] FORCE THE MODULE TO BE IMPORTED. QObject::connect(viewer.engine(), &QQmlEngine::quit, &viewer, &QWindow::close); qDebug() << viewer.engine()->importPathList(); viewer.setTitle(QStringLiteral("QML Axes")); viewer.setSource(QUrl("qrc:/qml/qmlaxes/main.qml")); viewer.setResizeMode(QQuickView::SizeRootObjectToView); viewer.show(); return app.exec(); }
[Output through qDebug()]
("/home/snjee/workspace_qt/maxelecPrjs/build-maxCoffeeTdsMeterApp-Desktop_Qt_5_15_2_GCC_64bit-Debug", "qrc:/qt-project.org/imports", "/opt/Qt/5.15.2/gcc_64/qml")You can find the answer in the built-in "QML Axes" example source.
-
"... is not installed"
"found not working imports...."
I have now found the correct solution.
All problems were solved.
=> Solutions : https://stackoverflow.com/questions/22320541/import-qtquick-controls-2-1-qml-module-not-found