FluentUI/example/qml/TestWindow.qml

63 lines
933 B
QML
Raw Normal View History

2023-05-11 18:24:58 +08:00
import QtQuick
2023-05-14 19:06:10 +08:00
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Layouts
2023-05-11 18:24:58 +08:00
import FluentUI
2023-05-14 19:06:10 +08:00
Window {
2023-05-11 18:24:58 +08:00
id:window
2023-05-14 19:06:10 +08:00
title: "132"
2023-05-11 18:24:58 +08:00
visible: true
2023-05-14 19:06:10 +08:00
width: 600
color: "#00000000"
height: 480
FluInfoBar{
id:info_bar
root: window
}
Rectangle{
anchors.fill: parent
color: "#FFFFFF"
}
2023-05-11 18:24:58 +08:00
FluButton{
2023-05-14 19:06:10 +08:00
x: 23
y: 31
2023-05-11 18:24:58 +08:00
text:"123"
2023-05-14 19:06:10 +08:00
onClicked: {
info_bar.showSuccess("asdasd")
}
}
FluFilledButton{
x: 23
y: 95
text: "asdasd"
onClicked: {
info_bar.showInfo("123132")
}
}
FluTextBox{
text: "asdasd"
anchors.verticalCenterOffset: -59
anchors.horizontalCenterOffset: -127
anchors.centerIn: parent
}
FluProgressBar{
x: 23
y: 238
}
FluProgressRing{
x: 18
y: 283
2023-05-11 18:24:58 +08:00
}
}