# DelegateUI **Repository Path**: thomas8888/DelegateUI ## Basic Information - **Project Name**: DelegateUI - **Description**: * 此仓库为 Github 镜像仓库 - 「 DelegateUI 」 基于 Qml 的 Ant-d UI 套件 - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: https://github.com/mengps/DelegateUI - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 25 - **Created**: 2025-06-17 - **Last Updated**: 2025-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# 「 DelegateUI 」 Modern UI for Qml Ant Design component library for Qt Qml If you need Qt5 impl [DelegateUI for Qt5](https://github.com/mengps/QmlControls)
![win-badge] ![linux-badge] [![Issues][issues-image]][issues-url] [![QQGroup][qqgroup-image]][qqgroup-url] English | [中文](./README-zh_CN.md)
[win-badge]: https://img.shields.io/badge/Windows-passing-brightgreen?style=flat-square [linux-badge]: https://img.shields.io/badge/Linux-passing-brightgreen?style=flat-square [issues-image]: https://flat.badgen.net/github/label-issues/mengps/DelegateUI/open [issues-url]: https://github.com/mengps/DelegateUI/issues [qqgroup-image]: https://img.shields.io/badge/QQGroup-490328047-f74658?style=flat-square [qqgroup-url]: https://qm.qq.com/q/cMNHn2tWeY
## 🌈 Gallery Preview
## ✨ Features - 📦 A set of high-quality Qml components out of the box. - 🎨 Powerful theme customization system. - 💻 Based on Qml, completely cross platform. ## 🗺️ Roadmap The development plan can be found here: [Component Roadmap](https://github.com/mengps/DelegateUI/discussions/5). Anyone can discuss through issues, QQ groups, or WeChat groups, and ultimately meaningful components/functions will be added to the development plan. ## 🔨 How to Build - Clone ```auto git clone --recursive https://github.com/mengps/DelegateUI.git ``` - Build ```cmake cd DelegateUI cmake -S . -B build cmake --build build --config Release --target all --parallel ``` By default, the `plugin` will be builded in the `[QtDir]/[QtVersion]/[Kit]/qml/DeleagetUI` directory. - Install ```cmake cmake --install --prefix ``` The installation directory structure ```auto ── ├─include │ *.h ├─bin │ *.dll/so ├─lib │ *.lib └─imports └─DeleagetUI ``` - Usage - Link the `/lib`. - Include the `/include`. - Copy the `/bin/DeleagetUI.[dll/so]` to `[QtDir]/[QtVersion]/[Kit]/bin`. - Copy the `/imports/DeleagetUI` to `[QtDir]/[QtVersion]/[Kit]/qml`. ## 📦 Get started - Create QtQuick application `QtVersion >= 6.5` - Add the following cmake command to your project `CMakeLists.txt` ```cmake target_include_directories( PRIVATE DelegateUI/include) target_link_directories( PRIVATE DelegateUI/lib) target_link_libraries( PRIVATE DelegateUI) ``` - Add the following code to your `main.cpp` ```cpp #include "delapp.h" int main(int argc, char *argv[]) { ... QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL); QQuickWindow::setDefaultAlphaBuffer(true); ... QGuiApplication app(argc, argv); QQmlApplicationEngine engine; DelApp::initialize(&engine); ... } ``` - Add the following code to your `.qml` ```qml import DelegateUI DelWindow { ... } ``` Alright, you can now enjoy using DelegateUI. ## 🚩 Reference - Ant-d Components: https://ant-design.antgroup.com/components/overview - Ant Design: https://ant-design.antgroup.com/docs/spec/introduce ## 💓 LICENSE Use `MIT LICENSE` ## 🌇 Environment Windows 11 / Ubuntu 24.04.2, Qt Version >= 6.5 ## 🎉 Star History [![Star History Chart](https://api.star-history.com/svg?repos=mengps/DelegateUI&type=Date)](https://star-history.com/#mengps/DelegateUI&Date)