{"id":35867365,"url":"https://github.com/mengps/HuskarUI","last_synced_at":"2026-01-14T21:00:49.101Z","repository":{"id":263940423,"uuid":"879336028","full_name":"mengps/HuskarUI","owner":"mengps","description":"🎉 Ant-d UI-Kit for Qml","archived":false,"fork":false,"pushed_at":"2026-01-12T16:59:39.000Z","size":37506,"stargazers_count":380,"open_issues_count":7,"forks_count":57,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-12T19:38:57.922Z","etag":null,"topics":["ant-design","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-27T16:32:44.000Z","updated_at":"2026-01-12T17:00:23.000Z","dependencies_parsed_at":"2024-12-12T16:25:29.483Z","dependency_job_id":"c1cad7e1-d2bd-462e-b148-df678f69ad36","html_url":"https://github.com/mengps/HuskarUI","commit_stats":null,"previous_names":["mengps/delegateui","mengps/huskarui"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/mengps/HuskarUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FHuskarUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FHuskarUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FHuskarUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FHuskarUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mengps","download_url":"https://codeload.github.com/mengps/HuskarUI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengps%2FHuskarUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ant-design","controls","cpp17","qml","qt6","ui-kit"],"created_at":"2026-01-08T14:00:39.778Z","updated_at":"2026-01-14T21:00:49.071Z","avatar_url":"https://github.com/mengps.png","language":"QML","funding_links":[],"categories":["Styling"],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n\u003cimg width=64 src=\"resources/huskarui_new_square.svg\"\u003e\n\n# 「 HuskarUI 」 基于 Qml 的现代 UI\n\nQt Qml 的 Ant 设计组件库\n\n如果你需要 Python 实现 [HuskarUI for PySide6](https://github.com/mengps/PyHuskarUI)\n\n如果你需要 Qt5 实现 [HuskarUI for Qt5](https://github.com/mengps/HuskarUI_Qt5)\n\n\u003c/div\u003e\n\n\u003cdiv align=center\u003e\n\n![win-badge] ![linux-badge] ![macos-badge] ![android-badge]\n\n[![Issues][issues-open-image]][issues-open-url] [![Issues][issues-close-image]][issues-close-url] [![Release][release-image]][release-url]\n\n[![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[macos-badge]: https://img.shields.io/badge/MacOS-passing-brightgreen?style=flat-square\n[android-badge]: https://img.shields.io/badge/Android-passing-brightgreen?style=flat-square\n\n[issues-open-image]: https://img.shields.io/github/issues/mengps/HuskarUI?label=Issue\u0026style=flat-square\n[issues-open-url]: https://github.com/mengps/HuskarUI/issues\n[issues-close-image]: https://img.shields.io/github/issues-closed/mengps/HuskarUI?color=brightgreen\u0026label=Issue\u0026style=flat-square\n[issues-close-url]: https://github.com/mengps/HuskarUI/issues?q=is%3Aissue%20state%3Aclosed\n\n[release-image]: https://img.shields.io/github/v/release/mengps/HuskarUI?label=Release\u0026style=flat-square\n[release-url]: https://github.com/mengps/HuskarUI/releases\n\n[qqgroup-image]: https://img.shields.io/badge/QQGroup-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\u003cimg width=800 height=500 src=\"preview/doc.png\"\u003e\n\u003cimg width=800 height=500 src=\"preview/designer.png\"\u003e\n\n\u003c/div\u003e\n\n## ✨ 特性\n\n- 📦 一套开箱即用的优质 Qml 组件.\n- 🎨 强大的主题定制系统.\n- 💻 基于Qml，完全跨平台.\n- 🔧 高度灵活的基于委托的组件定制.\n\n## 🗺️ 路线图\n\n开发计划可以在这里看到: [组件路线图](https://github.com/mengps/HuskarUI/discussions/5).\n\n任何人都可以通过 issue/qq群/wx群 进行讨论, 最终有意义的组件/功能将添加到开发计划.\n\n## 🌐 在线 wiki\n- [HuskarUI 在线 wiki (AI)](https://deepwiki.com/mengps/HuskarUI)\n\n## 📺 在线演示\n\n  - [哔哩哔哩](https://www.bilibili.com/video/BV1jodhYhE8a/?spm_id_from=333.1387.homepage.video_card.click)\n\n## 🗂️ 预编译包\n\n预编译了两个平台的 `Windows / Linux` 程序包和二进制库包.\n\n前往 [Release](https://github.com/mengps/HuskarUI/releases) 中下载.\n\n## 🔨 如何构建\n\n- 克隆\n```auto\ngit clone --recursive https://github.com/mengps/HuskarUI.git\n```\n- 构建 \u0026 安装\n  - Windows - Visual Studio\n  ```sh\n  cd HuskarUI\n  cmake -DCMAKE_PREFIX_PATH=\u003cQT_DIR\u003e -G \"Visual Studio \u003cversion\u003e\" -B build -S . \n  cmake --build build --config Release --target ALL_BUILD INSTALL --parallel\n  ```\n  - All - Ninja\n  ```sh\n  cd HuskarUI\n  cmake -DCMAKE_PREFIX_PATH=\u003cQT_DIR\u003e -G \"Ninja\" -B build -S . \n  cmake --build build --config Release --target all install --parallel\n  ```\n\n\u003e [!IMPORTANT]\n\u003e 默认情况下, `INSTALL_HUSKARUI_IN_DEFAULT_LOCATION=ON`:\n\u003e - `headers` 将安装在  `[QtDir]/[QtVersion]/[Kit]/include/HuskarUI` 目录中.\n\u003e - `*.dll` 将安装在  `[QtDir]/[QtVersion]/[Kit]/bin` 目录中.\n\u003e - `*.lib/*.so/*.dylib` 将安装在  `[QtDir]/[QtVersion]/[Kit]/lib` 目录中.\n\u003e - `qmlplugin` 将安装在 `[QtDir]/[QtVersion]/[Kit]/qml` 目录中.\n\u003e \n\u003e 如果您想改变安装目录, 请将 `INSTALL_HUSKARUI_IN_DEFAULT_LOCATION` 设置为 `OFF` 并在 cmake 中设置 `HUSKARUI_INSTALL_DIRECTORY`.\n\u003e ```sh\n\u003e cmake -DCMAKE_PREFIX_PATH=\u003cQT_DIR\u003e \\\n\u003e   -DINSTALL_HUSKARUI_IN_DEFAULT_LOCATION=OFF \\\n\u003e   -DHUSKARUI_INSTALL_DIRECTORY=\u003cinstall_dir\u003e \\\n\u003e   -G \"Ninja\" -B build -S .\n\u003e ```\n\n安装目录结构\n```auto\n──\u003cinstall_dir\u003e\n    ├─include\n    │   └─HuskarUI/*.h\n    ├─bin\n    │   *.dll\n    ├─lib\n    │   *.lib/*.so/*.dylib\n    │   └─cmake/*.cmake\n    └─qml\n        └─HuskarUI/Basic\n        └─HuskarUI/Impl\n```\n- 用法\n  - 使用 cmake\n    添加下面的 cmake 命令到您项目的 `CMakeLists.txt` 中\n    ```cmake\n    find_package(HuskarUI REQUIRED)\n    target_link_libraries(\u003cyour_target\u003e HuskarUI::Basic)\n    ```\n  - 直接使用库\n    - 链接`\u003cinstall_dir\u003e/lib`.\n    - 包含 `\u003cinstall_dir\u003e/include`.\n    - [可选] 复制 `\u003cinstall_dir\u003e/bin/HuskarUIBasic.[dll]` 到 `[QtDir]/[QtVersion]/[Kit]/bin`.\n    - [可选] 复制 `\u003cinstall_dir\u003e/lib/HuskarUIBasic.[so/dylib]` 到 `[QtDir]/[QtVersion]/[Kit]/bin`.\n    - 复制 `\u003cinstall_dir\u003e/qml/HuskarUI` 到 `[QtDir]/[QtVersion]/[Kit]/qml`.\n\n## 📦 上手\n\n - 创建 QtQuick 应用 `QtVersion \u003e= 6.7`\n - 添加下面的代码到您的 `main.cpp` 中\n ```cpp\n  #include \"HuskarUI/husapp.h\"\n\n  int main(int argc, char *argv[])\n  {\n      ...\n      /*! 设置 OpenGL, 可选 */\n      QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);\n      QQuickWindow::setDefaultAlphaBuffer(true);\n      ...\n      QGuiApplication app(argc, argv);\n      QQmlApplicationEngine engine;\n      engine.singletonInstance\u003cQJSValue\u003e(\"HuskarUI.Basic\", \"HusApp\");\n      ...\n  }\n ```\n - 添加下面的代码到您的 `.qml` 中\n ```qml\n  import HuskarUI.Basic\n  HusWindow { \n    ...\n  }\n ```\n好了，你现在可以愉快的开始使用 HuskarUI 了。\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.7\n\n## 🎉 Star 历史\n\n[![Star History Chart](https://api.star-history.com/svg?repos=mengps/HuskarUI\u0026type=Date)](https://star-history.com/#mengps/HuskarUI\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengps%2FHuskarUI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmengps%2FHuskarUI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengps%2FHuskarUI/lists"}