FluentUI/example/qml/page/T_FluentPro.qml

66 lines
2.3 KiB
QML
Raw Normal View History

2024-07-10 12:31:09 +08:00
import QtQuick 2.15
import QtQuick.Layouts 1.15
import QtQuick.Controls 2.15
import QtQuick.Window 2.15
import FluentUI 1.0
import "../component"
FluContentPage{
title: "FluentUI Pro"
Image{
id: iamge_logo
width: 80
height: 80
source: "qrc:/example/res/image/logo_pro.png"
}
Flickable{
anchors{
top: iamge_logo.bottom
left: parent.left
right: parent.right
bottom: parent.bottom
}
ScrollBar.vertical: FluScrollBar {}
ScrollBar.horizontal: FluScrollBar {}
contentWidth: text.width
contentHeight: text.height
clip: true
FluText{
id: text
textFormat: Text.MarkdownText
onLinkActivated:
(link)=> {
Qt.openUrlExternally(link)
}
onLinkHovered:
(link)=> {
if(link === ""){
FluTools.restoreOverrideCursor()
}else{
FluTools.setOverrideCursor(Qt.PointingHandCursor)
}
}
text:'
[FluentUI](https://github.com/zhuzichu520/FluentUI)开源版本重新打造的项目,代码更加漂亮,API更加好用,界面更加细腻
## ?
1. Qt6与Qt5.15.2,Pro版本仅支持Qt6
2. Flu前缀,Pro版本去掉Flu前缀,```qputenv("QT_QUICK_CONTROLS_STYLE", "FluentUI");```,Button换成FluentUI样式
3. ,,Pro版本分为FluentUI,FluentUI.Controls,FluentUI.impl三个模块
4. Pro版本支持热加载QML界面变化
5. wasm编译Pro版本支持wasm编译
6. Pro版本做了减法
7. Pro版本默认静态库依赖
8. MIT协议免费Pro版本付费wx购买FluentUI
## Pro版本
[](https://github.com/zhuzichu520/FluentUI-Pro-Installer/releases)'
}
}
}