Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions examples/qml-inspect/Example_GroupBox.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// SPDX-FileCopyrightText: 2025 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later

import QtQuick 2.0
import QtQuick.Layouts 1.11
import org.deepin.dtk 1.0

Flow {
id: control
Row {
spacing: 20

GroupBox {
title: "GroupBox"
ColumnLayout {
anchors.fill: parent
CheckBox { text: "E-mail" }
CheckBox { text: "Super Fancy Calendar" }
CheckBox { text: "Contacts" }
}
}

GroupBox {
title: "GroupBox 2"
Label {
text: "GroupBox Content"
}
}
}
}
4 changes: 4 additions & 0 deletions examples/qml-inspect/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ D.ApplicationWindow {
V2.TabButton {
text: qsTr("Flickable")
}
V2.TabButton {
text: qsTr("GroupBox")
}
}
StackLayout {
anchors.left: parent.left
Expand All @@ -159,6 +162,7 @@ D.ApplicationWindow {
Example_Menu {}
Example_Popup {}
Example_Flickable {}
Example_GroupBox {}
}

D.BehindWindowBlur {
Expand Down
1 change: 1 addition & 0 deletions examples/qml-inspect/qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
<file>Example_Menu.qml</file>
<file>Example_Popup.qml</file>
<file>Example_Flickable.qml</file>
<file>Example_GroupBox.qml</file>
</qresource>
</RCC>
2 changes: 0 additions & 2 deletions qt6/src/qml/GroupBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ T.GroupBox {
color: control.palette.windowText
elide: Text.ElideRight
verticalAlignment: Text.AlignLeft

background: Rectangle { }
}

background: Rectangle {
Expand Down