FluentUI/example/res/template/src/main.qml.in
朱子楚\zhuzi d420282dd8 update
2024-03-13 19:14:56 +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
}
}
}