Skip to content

CloudTide4746/HuskarUI

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

736 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ใ€Œ HuskarUI ใ€ Modern UI for Qml

Ant Design component library for Qt Qml

If you need Qt5 impl HuskarUI for Qt5

win-badge linux-badge macos-badge android-badge

Issues Issues Release

QQGroup

English | ไธญๆ–‡

๐ŸŒˆ Gallery Preview

โœจ Features

  • ๐Ÿ“ฆ A set of high-quality Qml components out of the box.
  • ๐ŸŽจ Powerful theme customization system.
  • ๐Ÿ’ป Based on Qml, completely cross platform.
  • ๐Ÿ”ง Highly flexible delegate based component customization.

๐Ÿ—บ๏ธ Roadmap

The development plan can be found here: Component Roadmap.

Anyone can discuss through issues, QQ groups, or WeChat groups, and ultimately meaningful components/functions will be added to the development plan.

๐Ÿ“บ Online Demo

๐Ÿ—‚๏ธ Precompiled package

Precompiled packages and binary libraries for two platforms, Windows / Linux, have been created.

Please visit Release to download.

๐Ÿ”จ How to Build

  • Clone
git clone --recursive https://github.com/mengps/HuskarUI.git
  • Build
cd HuskarUI
cmake -S . -B build
cmake --build build --config Release --target all --parallel
  • Build with MinGW
cmake -S . -B build -G "MinGW Makefiles"

By default, the plugin will be built in the [QtDir]/[QtVersion]/[Kit]/qml/HuskarUI directory.

  • Install
cmake --install --prefix <install_dir>

The installation directory structure

โ”€โ”€<install_dir>
    โ”œโ”€include
    โ”‚   *.h
    โ”œโ”€bin
    โ”‚   *.dll
    โ”œโ”€lib
    โ”‚   *.lib/so
    โ””โ”€imports
        โ””โ”€HuskarUI/Basic
  • Usage
    • Link the <install_dir>/lib.
    • Include the <install_dir>/include.
    • Copy the <install_dir>/bin/HuskarUIBasic.[dll/so] to [QtDir]/[QtVersion]/[Kit]/bin.
    • Copy the <install_dir>/imports/HuskarUI to [QtDir]/[QtVersion]/[Kit]/qml.

๐Ÿ“ฆ Get started

  • Create QtQuick application QtVersion >= 6.7
  • Add the following cmake command to your project CMakeLists.txt
 target_include_directories(<your_target> PRIVATE HuskarUI/include)
 target_link_directories(<your_target> PRIVATE HuskarUI/lib)
 target_link_libraries(<your_target> PRIVATE HuskarUIBasic)
  • Add the following code to your main.cpp
 #include "huspp.h"

 int main(int argc, char *argv[])
 {
     ...
     /*! Set OpenGL, optional */
     QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
     QQuickWindow::setDefaultAlphaBuffer(true);
     ...
     QGuiApplication app(argc, argv);
     QQmlApplicationEngine engine;
     HusApp::initialize(&engine);
     ...
 }
  • Add the following code to your .qml
 import HuskarUI.Basic
 HusWindow { 
   ...
 }

Alright, you can now enjoy using HuskarUI.

๐Ÿšฉ Reference

๐Ÿ’“ LICENSE

Use MIT LICENSE

๐ŸŒ‡ Environment

Windows 11 / Ubuntu 24.04.2, Qt Version >= 6.7

๐ŸŽ‰ Star History

Star History Chart

About

๐ŸŽ‰ Ant-d UI-Kit for Qml

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • QML 86.5%
  • C++ 10.9%
  • CMake 1.5%
  • Other 1.1%