8000 GitHub - mengps/DelegateUI: ๐ŸŽ‰ Ant-d UI-Kit for Qml
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mengps/DelegateUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ใ€Œ DelegateUI ใ€ Modern UI for Qml

Ant Design component library for Qt Qml

If you need Qt5 impl DelegateUI for Qt5

win-badge linux-badge Issues 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.

๐Ÿ”จ How to Build

  • Clone
git clone --recursive https://github.com/mengps/DelegateUI.git
  • Build
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 --install --prefix <install_dir>

The installation directory structure

โ”€โ”€<install_dir>
    โ”œโ”€include
    โ”‚   *.h
    โ”œโ”€bin
    โ”‚   *.dll/so
    โ”œโ”€lib
    โ”‚   *.lib
    โ””โ”€imports
        โ””โ”€DeleagetUI
  • Usage
    • Link the <install_dir>/lib.
    • Include the <install_dir>/include.
    • Copy the <install_dir>/bin/DeleagetUI.[dll/so] to [QtDir]/[QtVersion]/[Kit]/bin.
    • Copy the <install_dir>/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
 target_include_directories(<your_target> PRIVATE DelegateUI/include)
 target_link_directories(<your_target> PRIVATE DelegateUI/lib)
 target_link_libraries(<your_target> PRIVATE DelegateUI)
  • Add the following code to your main.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
 import DelegateUI
 DelWindow { 
   ...
 }

Alright, you can now enjoy using DelegateUI.

๐Ÿšฉ Reference

๐Ÿ’“ LICENSE

Use MIT LICENSE

๐ŸŒ‡ Environment

Windows 11 / Ubuntu 24.04.2, Qt Version >= 6.5

๐ŸŽ‰ Star History

Star History Chart

0