From 0e7bb804084e2c32a5d4074ccc2deceb0ad07f80 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 25 Oct 2022 11:04:16 +0200 Subject: [PATCH] QmlDesigner: Use QML_COMPAT_RESOLVE_URLS_ON_ASSIGNMENT At least for now this is the better default for QDS. See also for example the SafeRenderer items. Task-number: QDS-4812 Change-Id: I03d614ec52c1e5ab11576bbfdaa3bad0d72f0fbf Reviewed-by: Teemu Holappa --- .../studio_templates/projects/common/app.qmlproject.tpl | 1 + .../studio_templates/projects/common/app_environment.h.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/share/qtcreator/qmldesigner/studio_templates/projects/common/app.qmlproject.tpl b/share/qtcreator/qmldesigner/studio_templates/projects/common/app.qmlproject.tpl index 206d8272da6..4031ba86a57 100644 --- a/share/qtcreator/qmldesigner/studio_templates/projects/common/app.qmlproject.tpl +++ b/share/qtcreator/qmldesigner/studio_templates/projects/common/app.qmlproject.tpl @@ -71,6 +71,7 @@ Project { Environment { QT_QUICK_CONTROLS_CONF: "qtquickcontrols2.conf" QT_AUTO_SCREEN_SCALE_FACTOR: "1" + QML_COMPAT_RESOLVE_URLS_ON_ASSIGNMENT: "1" @if %{IsQt6Project} @else QMLSCENE_CORE_PROFILE: "true" // Required for macOS, but can create issues on embedded Linux diff --git a/share/qtcreator/qmldesigner/studio_templates/projects/common/app_environment.h.tpl b/share/qtcreator/qmldesigner/studio_templates/projects/common/app_environment.h.tpl index e25a370c049..e1f7ec2e23d 100644 --- a/share/qtcreator/qmldesigner/studio_templates/projects/common/app_environment.h.tpl +++ b/share/qtcreator/qmldesigner/studio_templates/projects/common/app_environment.h.tpl @@ -15,4 +15,5 @@ void set_qt_environment() qputenv("QT_ENABLE_HIGHDPI_SCALING", "0"); qputenv("QT_LOGGING_RULES", "qt.qml.connections=false"); qputenv("QT_QUICK_CONTROLS_CONF", ":/qtquickcontrols2.conf"); + qputenv("QML_COMPAT_RESOLVE_URLS_ON_ASSIGNMENT", "1"); }