FluentUI/example/qml/page/T_Rectangle.qml

75 lines
1.8 KiB
QML
Raw Normal View History

2023-08-24 15:50:37 +08:00
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import QtQuick.Window 2.15
import FluentUI 1.0
2023-08-26 17:20:30 +08:00
import "../component"
2023-03-01 11:58:30 +08:00
2023-03-10 18:08:32 +08:00
FluScrollablePage{
2023-03-28 17:53:46 +08:00
2024-03-09 15:35:48 +08:00
title: qsTr("Rectangle")
2023-03-10 18:08:32 +08:00
2023-04-06 17:32:21 +08:00
FluArea{
Layout.fillWidth: true
2023-03-10 18:08:32 +08:00
Layout.topMargin: 20
2023-09-27 15:18:10 +08:00
height: 80
2023-04-06 17:32:21 +08:00
paddings: 10
Column{
spacing: 15
anchors{
left: parent.left
2023-09-27 15:18:10 +08:00
verticalCenter: parent.verticalCenter
2023-03-01 11:58:30 +08:00
}
2023-04-06 17:32:21 +08:00
RowLayout{
Layout.topMargin: 20
FluRectangle{
width: 50
height: 50
color:"#0078d4"
radius:[0,0,0,0]
}
FluRectangle{
width: 50
height: 50
color:"#744da9"
radius:[15,15,15,15]
}
FluRectangle{
width: 50
height: 50
color:"#ffeb3b"
radius:[15,0,0,0]
}
FluRectangle{
width: 50
height: 50
color:"#f7630c"
radius:[0,15,0,0]
}
FluRectangle{
width: 50
height: 50
color:"#e71123"
radius:[0,0,15,0]
}
FluRectangle{
width: 50
height: 50
color:"#b4009e"
radius:[0,0,0,15]
}
2023-03-01 11:58:30 +08:00
}
}
}
2023-04-06 17:32:21 +08:00
CodeExpander{
Layout.fillWidth: true
2023-04-19 17:25:46 +08:00
Layout.topMargin: -1
2023-04-06 17:32:21 +08:00
code:'FluRectangle{
radius: [25,25,25,25]
width: 50
height: 50
}'
2023-03-10 18:08:32 +08:00
}
2023-03-01 11:58:30 +08:00
}