aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/itemvariablerefreshrate/main.cpp
diff options
context:
space:
mode:
authorKristoffer Skau <kristoffer.skau@qt.io>2022-08-30 09:52:55 +0200
committerKristoffer Skau <kristoffer.skau@qt.io>2022-09-08 16:46:55 +0200
commit7fe4c9bb27d4c60c072193155e620c160ea6f4bc (patch)
tree30cbfb07e7e46b8e0586074153f6ebd25360d7af /examples/quick/itemvariablerefreshrate/main.cpp
parentf406385dfb9e88b3661f8524281b8f9d9e1351a7 (diff)
Add live property to QQuickItem layer
QQuickItemLayer now has a live property that can be set to determine if its contents should change whenever the item updates. This enables variable refresh rate for quick items. [ChangeLog] Added live property to QQuickItem layer. Fixes: QTBUG-77343 Change-Id: I8bf7e7af4cfed6deef2253d346bb0b72d0fef66e Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples/quick/itemvariablerefreshrate/main.cpp')
-rw-r--r--examples/quick/itemvariablerefreshrate/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/quick/itemvariablerefreshrate/main.cpp b/examples/quick/itemvariablerefreshrate/main.cpp
new file mode 100644
index 0000000000..078b9b4358
--- /dev/null
+++ b/examples/quick/itemvariablerefreshrate/main.cpp
@@ -0,0 +1,4 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+#include "../shared/shared.h"
+DECLARATIVE_EXAMPLE_MAIN(itemvariablerefreshrate/itemvariablerefreshrate)