Fluent-Qt

Qt Widgets 的 Fluent UI 组件库

提供基础输入、导航与数据展示等组件,内置主题切换与流畅动画,构建跨平台桌面应用。

C++17 Qt 5.15+ / 6.2+ MIT

Python / PySide6 Python 项目可通过 PySide6 使用同一套控件 pip install FluentQt Gallery
Windows 下开启 3D 与 Mica 的 Fluent-Qt Gallery Home 实际截图,展示控件分类和示例
UI 运行时
Qt Widgets
Qt 支持
5.15+ / 6.2+
工具链
CMake + C++17
运行平台
Windows / macOS / Linux / Web

03 / GUI SKILL

用 AI 开发桌面 GUI

  • 工程C++ / PySide6 项目结构
  • 界面Fluent 组件、主题与配色
  • 快速预览先在 Live Scene 里边改边看,再用 C++ 示例确认效果
  • 检查Light / Dark、窄窗口与交互
参考实现 DeepSeek Desktop
C++ · FluentQt
使用 build-fluentqt-gui 构建的 DeepSeek Desktop 原生桌面参考界面

任务分组、运行时间线、输入与 Light / Dark 主题。

FluentQt 独立实现,非 DeepSeek 官方应用。

上游项目

04 / QUICK START

快速接入

将片段放在 add_executable(my_app ...) 之后。新建工程可参考完整的 hello_world 示例。

  • 保留现有 Widgets 工程与事件循环
  • 库目标只依赖 Qt Widgets
  • Qt 5 / Qt 6 使用同一应用层接口
CMakeLists.txt
# Add Fluent-Qt to your existing project
include(FetchContent)

FetchContent_Declare(
  fluentqt
  GIT_REPOSITORY https://github.com/calvinhxx/Fluent-Qt.git
  GIT_TAG v1.9.3
  GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(fluentqt)

target_link_libraries(
  my_app PRIVATE FluentQt::FluentQt
)

05 / SPATIAL · 可选 3D 扩展

熟悉的控件,多一层空间。

把现有 QWidget 组合放进 SpatialView,为卡片加入透视、旋转与景深。普通 2D 应用无需启用。

  • 控件不必重写

    保留原有布局、signals / slots 和模型;SpatialItem 管理整组控件的姿态。

  • 空间合成,按需刷新

    桌面使用 OpenGL,WebAssembly 使用 WebGL;内容不变时复用纹理。

  • 按需启用,保留 2D

    C++ 链接 FluentQt::Spatial,Python 通过可选绑定使用。Gallery 在加速不可用时回退到 2D。

Gallery:Settings → 3D Gallery,再打开 Controls → Spatial。

SpatialView · C++ / WebAssembly
独立打开 ↗
直接运行真实的 SpatialView

两张卡片、实时图表和镜头控件,来自 C++ Gallery 的同一个示例。点击后加载 Qt / WASM。

真实 Qt Widgets / WebGL · 拖动滑块调整镜头,在场景内移动鼠标查看景深。

06 / POSITIONING

原生控件 C++ 接口

每个控件都有独立的 C++ API、状态与布局行为

  1. 01

    Qt Widgets 原生用法

    沿用 signals、slots、layout 与事件循环

  2. 02

    Qt 5 / Qt 6 共用接口

    应用侧无需为 Qt 主版本维护两套调用

  3. 03

    CMake 接入

    包含 FluentQt/FluentQt.h,链接 FluentQt::FluentQt

07 / COMPONENTS

控件按用途分类

以下为 Gallery 中的部分控件

Windows Mica 效果下的 Fluent-Qt Gallery Button 控件页面
01

BASIC INPUT

Button

包含默认、强调、禁用和图标状态

SplitButtonComboBoxCheckBox
Windows Mica 效果下的 Fluent-Qt Gallery 集合视图页面
02 / COLLECTIONSListView · GridView · TreeView
Windows Mica 效果下的 Fluent-Qt Gallery 导航与窗口界面
03 / SHELLNavigation · Windowing
FoundationTheme · Typography · FontIcon
Basic inputButton · ComboBox · ToggleSwitch
CollectionsListView · GridView · TreeView
Date & timeCalendarView · DatePicker · TimePicker
Dialogs & flyoutsContentDialog · Flyout · TeachingTip
LayoutCard · Accordion · Expander
Menus & toolbarsMenu · MenuBar · CommandBar
NavigationNavigationView · TabView · Breadcrumb
ScrollingScrollView · PipsPager · AnnotatedScrollBar
Status & infoInfoBar · ProgressRing · Toast
Text fieldsLineEdit · PasswordBox · AutoSuggestBox
WindowingWindow · TitleBar · WindowBackdrop

08 / DOWNLOAD

下载 Gallery

桌面安装包用于离线体验;应用接入仍使用 CMake 或 PyPI。