diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-09-19 12:20:55 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-09-25 11:01:17 +0200 |
commit | bcda7aa6e442a33203eb99b63427dcd1ad1fd343 (patch) | |
tree | ea7367b4b50be5e552de827f4be22e9f43d2ba63 /examples/quick | |
parent | aeb3bd235a7eaba163b9867b97a9869cc9ecaf7d (diff) |
Show item size in rhitextureitem example
To make the logical window/item size vs. reality (texture sizes
in pixels) difference obvious immediately.
Also change the slider max value to 2048 to allow exercising up to
2048x2048 textures.
Also clean up the texture format label.
Change-Id: I27e0d1fe99fa2a32f55176612ac1ca65c9045a4d
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r-- | examples/quick/scenegraph/rhitextureitem/main.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/quick/scenegraph/rhitextureitem/main.qml b/examples/quick/scenegraph/rhitextureitem/main.qml index c29cd2ecd6..4cf06c6ad7 100644 --- a/examples/quick/scenegraph/rhitextureitem/main.qml +++ b/examples/quick/scenegraph/rhitextureitem/main.qml @@ -170,7 +170,7 @@ Item { id: slSize enabled: cbSize.checked from: 8 - to: 1024 + to: 2048 value: 128 } } @@ -179,6 +179,10 @@ Item { text: qsTr("Backing texture size: %1x%2 pixels").arg(renderer.effectiveTextureSize.width).arg(renderer.effectiveTextureSize.height) } + Label { + text: qsTr("Item logical size: %1x%2").arg(renderer.width).arg(renderer.height) + } + CheckBox { id: cbBlend text: qsTr("Force alpha blending\nregardless of item opacity") @@ -224,7 +228,7 @@ Item { } GroupBox { - title: qsTr("Texture format (no visible effect)") + title: qsTr("Texture format") ColumnLayout { RadioButton { id: rdFormatRGBA8 |