A Fluent Design-like UI library for Qt Quick (QML) based on PySide6
Project description
[!IMPORTANT] FluentQML is a secondary development based on RinUI RinUI is licensed under the MIT License, and the original copyright notice is preserved in this repository's license file.
Overview
FluentQML is a PySide6 + QML component library for building desktop interfaces with a Fluent Design inspired look and feel. It provides reusable Qt Quick controls, window chrome, theme handling, icon support, translation loading, and a gallery app that demonstrates the available components.
The project is designed for developers who want to keep their application UI in QML while using Python for application startup, window management, configuration, and platform integration.
Compared with RinUI
FluentQML currently adds these changes:
- macOS native window materials: System, HUD, and None.
- Better macOS window handling, including native title-bar integration and smoother window dragging.
- Windows 11 Snap Layout support for custom windows.
- QML, fonts, images, and translations compiled into Qt qrc resources for PyPI packages.
- Cross-platform Python scripts for resource building, Gallery packaging, and releases.
- Fixes for CalendarDatePicker, Expander rounded corners, page refresh behavior, and config paths.
Features
- Fluent-style Qt Quick controls for common desktop UI patterns
- Custom application windows with title bar and navigation layouts
- Light, dark, and automatic theme switching
- Theme color and backdrop effect support
- Fluent System Icons integration
- Translation resource loading for application localization
- Gallery examples for controls, layouts, navigation, dialogs, menus, and inputs
- PyInstaller hook support for packaged applications
Preview
More screenshots
Installation
Install from PyPI after the package is published:
pip install fluentqml
For local development, install this repository in editable mode:
git clone https://github.com/Cheukfung/fluentqml.git
cd fluentqml
uv sync
If you are not using uv, install the runtime dependencies manually:
pip install PySide6 darkdetect
Quick Start
Create a QML file, for example main.qml:
import QtQuick
import FluentQML
FluentWindow {
visible: true
width: 900
height: 600
title: "FluentQML App"
Text {
anchors.centerIn: parent
text: "Hello FluentQML"
}
}
Launch it from Python:
import sys
from PySide6.QtWidgets import QApplication
from fluentqml import FluentQMLWindow
app = QApplication(sys.argv)
window = FluentQMLWindow("main.qml")
sys.exit(app.exec())
The QML import name is FluentQML; the Python package name is fluentqml.
Gallery
Run the gallery app from the repository root:
uv run python examples/gallery.py
Or, if you are managing dependencies yourself:
python examples/gallery.py
The gallery is the best place to inspect available controls and copy working usage patterns while the formal documentation is still being written.
Project Layout
fluentqml/ Core Python package, QML modules, resources, hooks
examples/ Gallery app and component usage examples
docs/ Images and documentation drafts
scripts/ Resource and release helper scripts
test/ Small local QML loading experiments
Development
Regenerate the Qt resource bundle after changing QML, fonts, images, or translation files:
uv run python scripts/build_fluentqml_qrc.py
Run lint checks:
uv run ruff check .
Update library translations:
uv run python scripts/update_ts.py library
Update Gallery translations:
uv run python scripts/update_ts.py gallery
Package the Gallery app with PyInstaller:
uv run python scripts/package_gallery.py
Build release artifacts:
uv run python scripts/release.py build
The release script cleans dist/, regenerates fluentqml_rc.py, builds the
sdist and wheel, verifies that the wheel contains fluentqml/fluentqml_rc.py,
checks that raw QML resources are not accidentally included in the wheel, and
runs twine check.
Upload the already-built artifacts to TestPyPI:
uv run python scripts/release.py upload-testpypi
Upload the same artifacts to PyPI after testing the TestPyPI install:
uv run python scripts/release.py upload-pypi
Useful naming conventions in this project:
- Python import:
from fluentqml import FluentQMLWindow - QML import:
import FluentQML - Qt resource prefix:
qrc:/FluentQML - Generated resource module:
fluentqml.fluentqml_rc
Credits
FluentQML uses resources and ideas from the wider Qt and Fluent ecosystem:
License
FluentQML is released under the MIT License. See LICENSE for the full license text.
Copyright (c) 2026 Cheukfung
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fluentqml-0.2.1.tar.gz.
File metadata
- Download URL: fluentqml-0.2.1.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab1619aa101efaddb617da6b53a96e6ec0db519fe3c8c35043fcfb3a9e786b4f
|
|
| MD5 |
bf8dbc49e9e50b7ee5a1cf9f57f6e191
|
|
| BLAKE2b-256 |
f503057e214b4a974099cb100da06fcc50ed66f8937da3511752542995cbd4fb
|
Provenance
The following attestation bundles were made for fluentqml-0.2.1.tar.gz:
Publisher:
python-publish.yml on Cheukfung/Fluent-QML
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fluentqml-0.2.1.tar.gz -
Subject digest:
ab1619aa101efaddb617da6b53a96e6ec0db519fe3c8c35043fcfb3a9e786b4f - Sigstore transparency entry: 1562613296
- Sigstore integration time:
-
Permalink:
Cheukfung/Fluent-QML@bb092fe7e6587d51151fb4896321e39b5da525c8 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/Cheukfung
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bb092fe7e6587d51151fb4896321e39b5da525c8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fluentqml-0.2.1-py3-none-any.whl.
File metadata
- Download URL: fluentqml-0.2.1-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
473534f8568d232f3f20a98240796e4381ee5e050c6d50d99c7de41fafc80c68
|
|
| MD5 |
90725e96cad036118f7bbc73d2596b6d
|
|
| BLAKE2b-256 |
4a783c03b45965078005f4c11b8981cfc944afd97bf654f00e1eb4ac80ff3107
|
Provenance
The following attestation bundles were made for fluentqml-0.2.1-py3-none-any.whl:
Publisher:
python-publish.yml on Cheukfung/Fluent-QML
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fluentqml-0.2.1-py3-none-any.whl -
Subject digest:
473534f8568d232f3f20a98240796e4381ee5e050c6d50d99c7de41fafc80c68 - Sigstore transparency entry: 1562613369
- Sigstore integration time:
-
Permalink:
Cheukfung/Fluent-QML@bb092fe7e6587d51151fb4896321e39b5da525c8 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/Cheukfung
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@bb092fe7e6587d51151fb4896321e39b5da525c8 -
Trigger Event:
push
-
Statement type: