FluentUI/example/T_Progress.qml

40 lines
764 B
QML
Raw Normal View History

2023-03-30 21:52:55 +08:00
import QtQuick
import QtQuick.Layouts
import QtQuick.Window
import QtQuick.Controls
import FluentUI
2023-02-28 23:57:55 +08:00
2023-03-10 18:08:32 +08:00
FluScrollablePage{
2023-03-28 17:53:46 +08:00
2023-03-10 18:08:32 +08:00
title:"Progress"
2023-03-28 17:53:46 +08:00
leftPadding:10
rightPadding:10
bottomPadding:20
2023-03-10 18:08:32 +08:00
FluProgressBar{
Layout.topMargin: 20
2023-03-06 18:08:01 +08:00
}
2023-03-10 18:08:32 +08:00
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
2023-02-28 23:57:55 +08:00
}
2023-03-10 18:08:32 +08:00
Layout.bottomMargin: 30
2023-02-28 23:57:55 +08:00
}
}