mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
70 lines
1.3 KiB
QML
70 lines
1.3 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Window
|
|
import QtQuick.Controls
|
|
import FluentUI
|
|
import "qrc:///example/qml/component"
|
|
|
|
FluScrollablePage{
|
|
|
|
title:"Progress"
|
|
|
|
FluArea{
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: 20
|
|
height: 260
|
|
paddings: 10
|
|
ColumnLayout{
|
|
spacing: 20
|
|
anchors{
|
|
verticalCenter: parent.verticalCenter
|
|
left: parent.left
|
|
}
|
|
FluProgressBar{
|
|
}
|
|
FluProgressRing{
|
|
}
|
|
FluProgressBar{
|
|
id:progress_bar
|
|
indeterminate: false
|
|
}
|
|
FluProgressRing{
|
|
id:progress_ring
|
|
indeterminate: false
|
|
}
|
|
FluSlider{
|
|
onValueChanged:{
|
|
var progress = value/100
|
|
progress_bar.progress = progress
|
|
progress_ring.progress = progress
|
|
}
|
|
Component.onCompleted: {
|
|
value = 50
|
|
}
|
|
}
|
|
}
|
|
}
|
|
CodeExpander{
|
|
Layout.fillWidth: true
|
|
Layout.topMargin: -1
|
|
code:'FluProgressBar{
|
|
|
|
}
|
|
|
|
FluProgressRing{
|
|
|
|
}
|
|
|
|
FluProgressBar{
|
|
indeterminate: false
|
|
}
|
|
|
|
FluProgressRing{
|
|
indeterminate: false
|
|
}'
|
|
}
|
|
|
|
|
|
|
|
}
|