diff --git a/src/plugins/qt4projectmanager/qt4project.cpp b/src/plugins/qt4projectmanager/qt4project.cpp index 408a259ba86170cebea457507509b98d109fd668..b1fbc90bf4e618b3a871dd82d1e13007b0d484b4 100644 --- a/src/plugins/qt4projectmanager/qt4project.cpp +++ b/src/plugins/qt4projectmanager/qt4project.cpp @@ -587,6 +587,14 @@ void Qt4Project::updateQmlJSCodeModel() foreach (Qt4ProFileNode *node, proFiles) { projectInfo.importPaths.append(node->variableValue(QmlImportPathVar)); } + if (activeTarget() && activeTarget()->activeBuildConfiguration()) { + const QtVersion *qtVersion = activeTarget()->activeBuildConfiguration()->qtVersion(); + if (qtVersion->isValid()) { + const QString qtVersionImportPath = qtVersion->versionInfo().value("QT_INSTALL_IMPORTS"); + if (!qtVersionImportPath.isEmpty()) + projectInfo.importPaths += qtVersionImportPath; + } + } projectInfo.importPaths.removeDuplicates(); if (projectInfo.qmlDumpPath.isNull()) {