aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickloader/data/initialPropertyTriggerException.qml
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-01-18 14:32:00 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-01-18 14:58:30 +0100
commite98b48f55cdb57a369513100f82d7c1df99c1243 (patch)
tree327a296abcced1c8bb137eef652c6373ad46cf98 /tests/auto/quick/qquickloader/data/initialPropertyTriggerException.qml
parent1fa352f0e0a62d0b445e9a2a01953f8afca29858 (diff)
QQmlComponentPrivate::setInitialProperties: Do not silently swallow exceptions
Instead, log them with qmlWarning. Change-Id: Icde7397085841a84aca8a81c716d552c4cd4485a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/quick/qquickloader/data/initialPropertyTriggerException.qml')
-rw-r--r--tests/auto/quick/qquickloader/data/initialPropertyTriggerException.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickloader/data/initialPropertyTriggerException.qml b/tests/auto/quick/qquickloader/data/initialPropertyTriggerException.qml
new file mode 100644
index 0000000000..457a6a4e26
--- /dev/null
+++ b/tests/auto/quick/qquickloader/data/initialPropertyTriggerException.qml
@@ -0,0 +1,12 @@
+import QtQuick 2.15
+
+Item {
+ id: root
+ Loader {
+ id: myloader
+ }
+ function f() {}
+ Component.onCompleted: {
+ myloader.setSource("Component.qml", {"i": root.f});
+ }
+}