FluentUI/example/T_InfoBar.qml

39 lines
834 B
QML
Raw Normal View History

2023-03-25 12:41:56 +08:00
import QtQuick
import QtQuick.Layouts
import QtQuick.Window
import QtQuick.Controls
import FluentUI
2023-02-28 18:29:00 +08:00
2023-03-10 18:08:32 +08:00
FluScrollablePage{
title:"InfoBar"
FluButton{
text:"Info"
Layout.topMargin: 20
onClicked: {
showInfo("这是一个Info样式的InfoBar")
}
2023-03-06 18:08:01 +08:00
}
2023-03-10 18:08:32 +08:00
FluButton{
text:"Warning"
Layout.topMargin: 20
onClicked: {
showWarning("这是一个Warning样式的InfoBar")
2023-02-28 18:29:00 +08:00
}
2023-03-10 18:08:32 +08:00
}
FluButton{
text:"Error"
Layout.topMargin: 20
onClicked: {
showError("这是一个Error样式的InfoBar")
}
}
FluButton{
text:"Success"
Layout.topMargin: 20
onClicked: {
showSuccess("这是一个Success样式的InfoBar这是一个Success样式的InfoBar")
2023-02-28 18:29:00 +08:00
}
}
}