{"id":21300795,"url":"https://github.com/mengps/delegateui","last_synced_at":"2025-04-14T17:21:46.191Z","repository":{"id":263940423,"uuid":"879336028","full_name":"mengps/DelegateUI","owner":"mengps","description":"🎉 Ant-d UI-Kit for Qml","archived":false,"fork":false,"pushed_at":"2025-04-12T12:29:57.000Z","size":14890,"stargazers_count":50,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T13:34:40.657Z","etag":null,"topics":["controls","cpp17","qml","qt6","ui-kit"],"latest_commit_sha":null,"homepage":"","language":"QML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mengps.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-27T16:32:44.000Z","updated_at":"2025-04-12T12:30:00.000Z","dependencies_parsed_at":"2024-12-12T16:25:29.483Z","dependency_job_id":"c1cad7e1-d2bd-462e-b148-df678f69ad36","html_url":"https://github.com/mengps/DelegateUI","commit_stats":null,"previous_names":["mengps/delegateui"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FDelegateUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FDelegateUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FDelegateUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FDelegateUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mengps","download_url":"https://codeload.github.com/mengps/DelegateUI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923754,"owners_count":21183958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["controls","cpp17","qml","qt6","ui-kit"],"created_at":"2024-11-21T15:31:20.310Z","updated_at":"2025-04-14T17:21:46.180Z","avatar_url":"https://github.com/mengps.png","language":"QML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n\u003cimg width=64 src=\"resources/delegateui_icon.svg\"\u003e\n\n# 「 DelegateUI 」 基于 Qml 的现代 UI\n\nQt Qml 的 Ant 设计组件库\n\n如果你需要 Qt5 实现 [DelegateUI for Qt5](https://github.com/mengps/QmlControls)\n\n\u003c/div\u003e\n\n\u003cdiv align=center\u003e\n\n![win-badge] ![linux-badge] [![Issues][issues-image]][issues-url] [![QQGroup][qqgroup-image]][qqgroup-url]\n\n[English](./README.md) | 中文\n\n\u003c/div\u003e\n\n[win-badge]: https://img.shields.io/badge/Windows-passing-brightgreen?style=flat-square\n[linux-badge]: https://img.shields.io/badge/Linux-passing-brightgreen?style=flat-square\n\n[issues-image]: https://flat.badgen.net/github/label-issues/mengps/DelegateUI/open\n[issues-url]: https://github.com/mengps/DelegateUI/issues\n\n[qqgroup-image]: https://img.shields.io/badge/QQ群-490328047-f74658?style=flat-square\n[qqgroup-url]: https://qm.qq.com/q/cMNHn2tWeY\n\n\u003cdiv align=center\u003e\n\n## 🌈 陈列室预览\n\n\u003cimg width=800 height=500 src=\"preview/light.png\"\u003e\n\u003cimg width=800 height=500 src=\"preview/dark.png\"\u003e\n\n\u003c/div\u003e\n\n## ✨ 特性\n\n- 📦 一套开箱即用的优质 Qml 组件.\n- 🎨 强大的主题定制系统.\n- 💻 基于Qml，完全跨平台.\n\n## 🔨 如何构建\n\n- 克隆\n```auto\ngit clone --recursive https://github.com/mengps/DelegateUI.git\n```\n- 构建\n```cmake\ncd DelegateUI\ncmake -S . -B build \ncmake --build build --config Release --target all --parallel\n```\n默认情况下，`plugin` 将构建在 `[QtDir]/[QtVersion]/[Kit]/qml/DeleagetUI` 目录中。\n- 安装\n```cmake\ncmake --intall --prefix \u003cinstall_dir\u003e\n```\n安装目录结构\n```auto\n──\u003cinstall_dir\u003e\n    ├─include\n    │   *.h\n    ├─bin\n    │   *.dll/so\n    ├─lib\n    │   *.lib\n    └─imports\n        └─DeleagetUI\n```\n- 使用\n  - 链接 `\u003cinstall_dir\u003e/lib`.\n  - 包含 `\u003cinstall_dir\u003e/include`.\n  - 复制 `\u003cinstall_dir\u003e/bin/DeleagetUI.[dll/so]` 到 `[QtDir]/[QtVersion]/[Kit]/bin`.\n  - 复制 `\u003cinstall_dir\u003e/imports/DeleagetUI` 到 `[QtDir]/[QtVersion]/[Kit]/qml`.\n\n## 📦 上手\n\n - 创建 QtQuick 应用 `QtVersion \u003e= 6.5`\n - 添加下面的 cmake 命令到您的项目 `CMakeLists.txt` 中\n ```cmake\n  target_include_directories(\u003cyour_target\u003e PRIVATE DelegateUI/include)\n  target_link_directories(\u003cyour_target\u003e PRIVATE DelegateUI/lib)\n  target_link_libraries(\u003cyour_target\u003e PRIVATE DelegateUI)\n ```\n - 添加下面的代码到您的 `main.cpp` 中\n ```cpp\n  #include \"delapp.h\"\n\n  int main(int argc, char *argv[])\n  {\n      ...\n      QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);\n      QQuickWindow::setDefaultAlphaBuffer(true);\n      ...\n      QGuiApplication app(argc, argv);\n      QQmlApplicationEngine engine;\n      DelApp::initialize(\u0026engine);\n      ...\n  }\n ```\n - 添加下面的代码到您的 `.qml` 中\n ```qml\n  import DelegateUI\n  DelWindow { \n    ...\n  }\n ```\n好了，你现在可以愉快的开始使用 DelegateUI 了。\n\n## 🚩 参考\n\n- Ant-d 组件: https://ant-design.antgroup.com/components/overview-cn\n- Ant 设计: https://ant-design.antgroup.com/docs/spec/introduce-cn\n\n## 💓 许可证\n\n使用 `MIT LICENSE`\n\n## 🌇 环境\n\nWindows 11 / Ubuntu 24.04.2, Qt Version \u003e= 6.5","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengps%2Fdelegateui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmengps%2Fdelegateui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengps%2Fdelegateui/lists"}