mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-01 08:31:33 +08:00
29 lines
759 B
QML
29 lines
759 B
QML
import QtQuick
|
||
import QtQuick.Window
|
||
import QtQuick.Controls
|
||
import QtQuick.Layouts
|
||
import QtMultimedia
|
||
import FluentUI
|
||
|
||
Window {
|
||
id:app
|
||
color: "#00000000"
|
||
//初始化一个MediaPlayer,解决macos切换到T_MediaPalyer页面崩溃问题
|
||
MediaPlayer{}
|
||
Component.onCompleted: {
|
||
FluApp.init(app,properties)
|
||
FluTheme.frameless = ("windows" === Qt.platform.os)
|
||
FluTheme.dark = false
|
||
FluApp.routes = {
|
||
"/":"qrc:/page/MainPage.qml",
|
||
"/about":"qrc:/page/AboutPage.qml",
|
||
"/login":"qrc:/page/LoginPage.qml",
|
||
"/chat":"qrc:/page/ChatPage.qml",
|
||
"/media":"qrc:/page/MediaPage.qml",
|
||
}
|
||
FluApp.initialRoute = "/"
|
||
FluApp.run()
|
||
}
|
||
|
||
}
|