FluentUI/example/App.qml

26 lines
641 B
QML
Raw Permalink Normal View History

2023-03-25 13:35:21 +08:00
import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.15
import FluentUI 1.0
2023-02-26 23:47:07 +08:00
Window {
id:app
2023-02-27 18:46:39 +08:00
color: "#00000000"
2023-02-26 23:47:07 +08:00
Component.onCompleted: {
2023-03-05 23:39:13 +08:00
FluApp.init(app,properties)
2023-03-28 21:37:10 +08:00
FluTheme.frameless = ("windows" === Qt.platform.os)
FluTheme.dark = false
2023-02-26 23:47:07 +08:00
FluApp.routes = {
2023-03-13 18:23:46 +08:00
"/":"qrc:/page/MainPage.qml",
"/about":"qrc:/page/AboutPage.qml",
"/login":"qrc:/page/LoginPage.qml",
2023-03-17 14:05:27 +08:00
"/chat":"qrc:/page/ChatPage.qml",
2023-03-03 18:19:48 +08:00
}
2023-03-05 23:46:46 +08:00
FluApp.initialRoute = "/"
2023-02-26 23:47:07 +08:00
FluApp.run()
}
}