FluentUI/example/T_Slider.qml

32 lines
652 B
QML
Raw Normal View History

2023-03-01 11:58:30 +08:00
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Window 2.15
2023-03-06 18:08:01 +08:00
import QtQuick.Controls 2.15
2023-03-01 11:58:30 +08:00
import QtGraphicalEffects 1.15
import FluentUI 1.0
Item {
2023-03-06 18:08:01 +08:00
FluText{
id:title
text:"Slider"
fontStyle: FluText.TitleLarge
}
ScrollView{
clip: true
width: parent.width
contentWidth: parent.width
anchors{
top: title.bottom
bottom: parent.bottom
2023-03-01 11:58:30 +08:00
}
2023-03-06 18:08:01 +08:00
ColumnLayout{
spacing: 5
FluSlider{
Layout.topMargin: 20
2023-03-07 00:05:27 +08:00
Layout.leftMargin: 15
2023-03-06 18:08:01 +08:00
value: 50
}
2023-03-01 11:58:30 +08:00
}
}
}