FluentUI/example/res/template/main.qml.in

51 lines
1.2 KiB
QML
Raw Normal View History

2024-03-11 00:02:11 +08:00
import QtQuick 2.15
import QtQuick.Window 2.15
import FluentUI 1.0
FluWindow {
width: 640
height: 480
minimumWidth: 320
minimumHeight: 240
title: qsTr("%1")
Column{
anchors.centerIn: parent
spacing: 15
Image{
width: 60
height: 60
source: "qrc:/logo.ico"
anchors.horizontalCenter: parent.horizontalCenter
}
FluText{
text: qsTr("Welcome to FluentUI")
anchors.horizontalCenter: parent.horizontalCenter
font: FluTextStyle.Title
}
FluFilledButton{
text: qsTr("Learn FluentUI")
anchors.horizontalCenter: parent.horizontalCenter
onClicked: {
Qt.openUrlExternally("https://space.bilibili.com/275661059")
}
}
}
2024-03-11 22:24:47 +08:00
Row{
anchors{
bottom: parent.bottom
bottomMargin: 14
horizontalCenter: parent.horizontalCenter
}
FluText{
text: qsTr("Author's WeChat ID: ")
}
FluText{
text: "FluentUI"
color: FluTheme.fontSecondaryColor
}
}
2024-03-11 00:02:11 +08:00
}