diff --git a/src/plugins/qmljseditor/qmljspreviewrunner.cpp b/src/plugins/qmljseditor/qmljspreviewrunner.cpp index edae36100f9b7f7a56b1b961d14021debe823f4f..61003606143a2ac063f417509593b05c03084ece 100644 --- a/src/plugins/qmljseditor/qmljspreviewrunner.cpp +++ b/src/plugins/qmljseditor/qmljspreviewrunner.cpp @@ -18,7 +18,7 @@ QmlJSPreviewRunner::QmlJSPreviewRunner(QObject *parent) : const QString searchPath = QCoreApplication::applicationDirPath() + Utils::SynchronousProcess::pathSeparator() + QString(qgetenv("PATH")); - m_qmlViewerDefaultPath = Utils::SynchronousProcess::locateBinary(searchPath, QLatin1String("qml")); + m_qmlViewerDefaultPath = Utils::SynchronousProcess::locateBinary(searchPath, QLatin1String("qmlviewer")); ProjectExplorer::Environment environment = ProjectExplorer::Environment::systemEnvironment(); m_applicationLauncher.setEnvironment(environment.toStringList());