0 新手入门(1.2.7以及之前版本)
zhuzichu edited this page 2023-04-27 09:40:18 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

编译环境

  1. main分支
  • Qt6.4.3、MSVC2019
  1. qt5分支
  • Qt5.15.2、MSVC2019

生成QML插件库

  • QtCreator打开项目点击构建->重新构建,等待编译结束
  • 完成之后会在D:\Qt\6.4.3\msvc2019_64\qml下面生成一个FuentUI的文件夹看下plugins.qmltypes文件是否有数据没有数据的话就再重新构建一遍 image

在项目中使用

  1. 初始化FluApp如下App.qml代码tips如果import FluentUI爆红的话点击工具->QML/JS->重置代码模型) 1681442368877
  2. 路由设置的窗口必须是FluWindow如下main.qml代码 1681442487828
  3. 运行效果图 image

Demo案例 https://github.com/zhuzichu520/FluentDemo