diff --git a/src/plugins/qtsupport/qtoptionspage.cpp b/src/plugins/qtsupport/qtoptionspage.cpp index a53fb57c9db..00dc64af5fd 100644 --- a/src/plugins/qtsupport/qtoptionspage.cpp +++ b/src/plugins/qtsupport/qtoptionspage.cpp @@ -907,10 +907,11 @@ static bool validateQtInstallDir(FancyLineEdit *input, QString *errorString) [](const QString &dir) { return settingsFile(dir); }); - *errorString = QtOptionsPageWidget::tr( - "
Qt installation information was not found in \"%1\". " - "Choose a directory that contains one of the files%2") - .arg(qtDir, filesToCheck.join('\n')); + *errorString = "" + QtOptionsPageWidget::tr( + "Qt installation information was not found in \"%1\". " + "Choose a directory that contains one of the files %2") + .arg(qtDir, "
" + filesToCheck.join('\n') + "") + + ""; } return false; }