diff --git a/tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp b/tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp index 0dc78ecd759..04660c7a9c7 100644 --- a/tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp +++ b/tests/auto/qml/codemodel/importscheck/tst_importscheck.cpp @@ -267,7 +267,7 @@ void tst_ImportCheck::importTypes() // the default qtQmlPath is based on the Qt version in use otherwise ModelManagerInterface::ProjectInfo defaultProject; - defaultProject.qtQmlPath = importPath; + defaultProject.qtQmlPath = Utils::FilePath::fromString(importPath); modelManager->setDefaultProject(defaultProject, nullptr); modelManager->activateScan();