diff options
| author | Dilek Akcay <dilek.akcay@qt.io> | 2026-09-25 11:22:57 +0200 |
|---|---|---|
| committer | Dilek Akcay <dilek.akcay@qt.io> | 2026-09-30 16:03:57 +0000 |
| commit | 7beb35bdb18e447cb0509a2b66dc45d4a5a21f39 (patch) | |
| tree | 0f6270a1ba7f9f11a1a43a52984330a1a400130f /src/labs/stylekit/doc/snippets/ControlsSnippets.qml | |
| parent | 229d3f6de529238fde08f75f1f00684fe12970db (diff) | |
StyleKit: Implement TableViewDelegate
Pick-to: 6.12
Change-Id: I09f75b8eab46ae5b640eec8b0d4c51ec45ecfbdb
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/labs/stylekit/doc/snippets/ControlsSnippets.qml')
| -rw-r--r-- | src/labs/stylekit/doc/snippets/ControlsSnippets.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/labs/stylekit/doc/snippets/ControlsSnippets.qml b/src/labs/stylekit/doc/snippets/ControlsSnippets.qml index d677c11124..710f860a16 100644 --- a/src/labs/stylekit/doc/snippets/ControlsSnippets.qml +++ b/src/labs/stylekit/doc/snippets/ControlsSnippets.qml @@ -835,6 +835,23 @@ ApplicationWindow { } //! [tabButton] + //! [tableViewDelegate] + tableViewDelegate { + text.alignment: Qt.AlignVCenter | Qt.AlignLeft + background { + radius: 0 + color: "white" + border.width: 0 + } + hovered.background.color: "white" + highlighted.background.color: "darkslategray" + highlighted.hovered.background.color: "darkslategray" + focused { + background.border.width: 2 + } + } + //! [tableViewDelegate] + //! [textArea] textArea { // Add some space between the text and the border of the text area |
