QmlDesigner: Add env variable to load different qt qml directory

Fixes: QDS-15591
Change-Id: I29f23812b62e571d204869df866ffc5fe51bd067
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Marco Bubke
2025-06-20 17:20:25 +02:00
parent 3d65ad1ad7
commit bd38546ac7

View File

@ -194,6 +194,9 @@ Sqlite::JournalMode projectStorageJournalMode()
[[maybe_unused]] QString qmlPath(::ProjectExplorer::Target *target)
{
if (auto path = qEnvironmentVariable("QDS_QML_DUMMY_DIRECTORY"); path.size())
return path;
auto qt = QtSupport::QtKitAspect::qtVersion(target->kit());
if (qt)
return qt->qmlPath().cleanPath().path();