FluentUI/example/res/template/main.qml.in
朱子楚\zhuzi 2a514b52bd update
2024-03-11 22:24:47 +08:00

51 lines
1.2 KiB
QML

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")
}
}
}
Row{
anchors{
bottom: parent.bottom
bottomMargin: 14
horizontalCenter: parent.horizontalCenter
}
FluText{
text: qsTr("Author's WeChat ID: ")
}
FluText{
text: "FluentUI"
color: FluTheme.fontSecondaryColor
}
}
}