aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/customrendernode/main.qml
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2023-09-14 14:02:07 +0200
committerLaszlo Agocs <[email protected]>2023-09-25 09:01:17 +0000
commitaeb3bd235a7eaba163b9867b97a9869cc9ecaf7d (patch)
tree27862c5bcca313c51a2bd598698517263c19e209 /examples/quick/scenegraph/customrendernode/main.qml
parent9000c9f17c66455071c0b7eed0e9168b94c8553d (diff)
Clean up customrendernode example
Make it more consistent with other scenegraph examples, and make it more compact, in particular when it comes to handling the QRhi resources (smart pointers are quite useful in this case since they help dropping a bunch of lines) Expand the docs. Pick-to: 6.6 6.6.0 Change-Id: I97bceca7759db9738d34f0fbf7eb29b0ae6e4c0f Reviewed-by: Christian Strømme <[email protected]>
Diffstat (limited to 'examples/quick/scenegraph/customrendernode/main.qml')
-rw-r--r--examples/quick/scenegraph/customrendernode/main.qml9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/quick/scenegraph/customrendernode/main.qml b/examples/quick/scenegraph/customrendernode/main.qml
index bd6869cc19..a0b62c4bf8 100644
--- a/examples/quick/scenegraph/customrendernode/main.qml
+++ b/examples/quick/scenegraph/customrendernode/main.qml
@@ -45,11 +45,10 @@ Item {
anchors.bottom: parent.bottom
anchors.margins: 20
wrapMode: Text.WordWrap
- text: qsTr("This example creates a custom scenegraph QSGRenderNode render node and " +
- "demonstrates its use. The render node is placed in front of a red " +
- "rectangle, and behind a white rectangle. Rendering is demonstrated " +
- "directly into the scenegraph, and as a layered item. Opacity and " +
- "rotation transform changes are exercised.")
+ text: qsTr("This example creates a custom QQuickItem backed by a QSGRenderNode in the scene graph. " +
+ "The render node is placed in front of a red rectangle, and behind a white rectangle. " +
+ "Rendering is demonstrated directly into the scenegraph, and as a layered, texture-backed item (layer.enabled set to true). " +
+ "Opacity and rotation transform changes are exercised as well.")
Rectangle {
z:-1