diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/snippets/declarative/GroupBox.qml | 11 | ||||
-rw-r--r-- | doc/src/snippets/declarative/content.qml | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/GroupBox.qml b/doc/src/snippets/declarative/GroupBox.qml new file mode 100644 index 0000000..a8ff5be --- /dev/null +++ b/doc/src/snippets/declarative/GroupBox.qml @@ -0,0 +1,11 @@ +ContentWrapper { + id: Container; width: parent.width + Rect { + width: parent.width; color: "white"; pen.width: 2; pen.color: "#adaeb0"; radius: 10 + clip: false; height: contents.height + VerticalLayout { + id: layout; width: parent.width + Content {} + } + } +} diff --git a/doc/src/snippets/declarative/content.qml b/doc/src/snippets/declarative/content.qml new file mode 100644 index 0000000..be04c6e --- /dev/null +++ b/doc/src/snippets/declarative/content.qml @@ -0,0 +1,6 @@ +GroupBox { + content: [ + Text { text: "First Item" } + Text { text: "Second Item" } + ] +} |