This commit is contained in:
朱子楚\zhuzi
2023-02-28 23:57:55 +08:00
parent 02e4579021
commit 0d6bc69b3c
12 changed files with 303 additions and 20 deletions

View File

@ -30,6 +30,10 @@ FluWindow {
text:"InfoBar"
page:"qrc:/T_InfoBar.qml"
}
ListElement{
text:"Progress"
page:"qrc:/T_Progress.qml"
}
ListElement{
text:"Rectangle"
page:"qrc:/T-Rectangle.qml"

View File

@ -12,6 +12,7 @@ Item {
FluText{
text:"Rectangle"
fontStyle: FluText.TitleLarge
Layout.topMargin: 20
}
FluRectangle{

42
example/T_Progress.qml Normal file
View File

@ -0,0 +1,42 @@
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Window 2.15
import QtGraphicalEffects 1.15
import FluentUI 1.0
Item {
ColumnLayout{
spacing: 5
FluText{
text:"Progress"
fontStyle: FluText.TitleLarge
}
FluProgressBar{
Layout.topMargin: 20
}
FluProgressRing{
Layout.topMargin: 10
}
FluProgressBar{
id:progress_bar
Layout.topMargin: 20
indeterminate: false
}
FluProgressRing{
id:progress_ring
Layout.topMargin: 10
indeterminate: false
}
FluSlider{
Layout.topMargin: 30
value:50
onValueChanged:{
progress_bar.progress = value/100
progress_ring.progress = value/100
}
}
}
}

View File

@ -9,5 +9,6 @@
<file>T_Buttons.qml</file>
<file>T-Rectangle.qml</file>
<file>T_InfoBar.qml</file>
<file>T_Progress.qml</file>
</qresource>
</RCC>