File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd.
2+ //
3+ // SPDX-License-Identifier: LGPL-3.0-or-later
4+
5+ import QtQuick 2.0
6+ import QtQuick.Layouts 1.11
7+ import org.deepin.dtk 1.0
8+
9+ Flow {
10+ id: control
11+ Row {
12+ spacing: 20
13+
14+ GroupBox {
15+ title: " GroupBox"
16+ ColumnLayout {
17+ anchors .fill : parent
18+ CheckBox { text: " E-mail" }
19+ CheckBox { text: " Super Fancy Calendar" }
20+ CheckBox { text: " Contacts" }
21+ }
22+ }
23+
24+ GroupBox {
25+ title: " GroupBox 2"
26+ Label {
27+ text: " GroupBox Content"
28+ }
29+ }
30+ }
31+ }
Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ D.ApplicationWindow {
140140 V2 .TabButton {
141141 text: qsTr (" Flickable" )
142142 }
143+ V2 .TabButton {
144+ text: qsTr (" GroupBox" )
145+ }
143146 }
144147 StackLayout {
145148 anchors .left : parent .left
@@ -159,6 +162,7 @@ D.ApplicationWindow {
159162 Example_Menu {}
160163 Example_Popup {}
161164 Example_Flickable {}
165+ Example_GroupBox {}
162166 }
163167
164168 D .BehindWindowBlur {
Original file line number Diff line number Diff line change 1313 <file>Example_Menu.qml</file>
1414 <file>Example_Popup.qml</file>
1515 <file>Example_Flickable.qml</file>
16+ <file>Example_GroupBox.qml</file>
1617 </qresource>
1718</RCC>
Original file line number Diff line number Diff line change @@ -26,8 +26,6 @@ T.GroupBox {
2626 color: control .palette .windowText
2727 elide: Text .ElideRight
2828 verticalAlignment: Text .AlignLeft
29-
30- background: Rectangle { }
3129 }
3230
3331 background: Rectangle {
You can’t perform that action at this time.
0 commit comments