The current Qt Version might be build with mingw or even be a Symbian
or Maemo target. This patch ensures that we do not try to load a plugin
from the configured Qt Version anymore.
Instead we only load plugins provided by Qt Creator
or plugins which are specified by: QML_IMPORT_PATH
Reviewed-by: Kai Koehne
Reviewed-by: Erik Verbruggen
{ // Have the QML engine check if the document is valid:
QDeclarativeEngine engine;
engine.setOutputWarningsToStandardError(false);
- foreach (const QString &importPath, importPaths)
- engine.addImportPath(importPath);
QDeclarativeComponent comp(&engine);
comp.setData(data.toUtf8(), url);
if (comp.status() == QDeclarativeComponent::Error) {