English | 中文
- 📦 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.
Precompiled packages and binary libraries for two platforms, Windows / Linux, have been created.
Please visit Release to download.
- Clone
git clone --recursive https://github.com/davidhsing/qt-antilla.git- Update
git submodule update --remote --recursive- Build
# Initialize MSVC Build Tools
"C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64cmake -S . -B build/make/Debug -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DBUILD_ANTILLA_DEFAULT_LOCATION=OFF -DINSTALL_ANTILLA_DEFAULT_LOCATION=OFF -DBUILD_ANTILLA_STATIC_LIBS=OFF
cmake --build build/make/Debug --target all --parallel --config Debug
# cmake --install build/make/Debug --prefix build/install/Debugcmake -S . -B build/make/Release -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DBUILD_ANTILLA_DEFAULT_LOCATION=OFF -DINSTALL_ANTILLA_DEFAULT_LOCATION=OFF -DBUILD_ANTILLA_STATIC_LIBS=OFF
cmake --build build/make/Release --target all --parallel --config Release
# cmake --install build/make/Release --prefix build/install/Release- The
BUILD_ANTILLA_DEFAULT_LOCATION,INSTALL_ANTILLA_DEFAULT_LOCATION,BUILD_ANTILLA_STATIC_LIBSparam is Antilla's own definition.
Important
By default, BUILD_ANTILLA_DEFAULT_LOCATION=ON:
- The
headerswill be built in the[QtDir]/[QtVersion]/[Kit]/include/Antilladirectory. - The
*.dll/*.sowill be built in the[QtDir]/[QtVersion]/[Kit]/bindirectory. - The
*.libwill be built in the[QtDir]/[QtVersion]/[Kit]/libdirectory. - The
qmlpluginwill be built in the[QtDir]/[QtVersion]/[Kit]/qml/Antilladirectory. - The
qmldirectory will be built in the[QtDir]/[QtVersion]/[Kit]/qml/Antilla. - The
AntillaBasic[d].dllwill be installed to[QtDir]/[QtVersion]/[Kit]/bin.
- Install
cmake --install --prefix <install_dir>The installation directory structure
──<install_dir>
├─include
│ *.h
├─bin
│ *.dll
├─lib
│ *.lib/so
└─imports
└─Antilla/Basic
- Usage
- Link the
<install_dir>/lib. - Include the
<install_dir>/include. - Copy the
<install_dir>/bin/AntillaBasic.[dll/so]to[QtDir]/[QtVersion]/[Kit]/bin. - Copy the
<install_dir>/imports/Antillato[QtDir]/[QtVersion]/[Kit]/qml.
- Link the
- Create QtQuick application
QtVersion >= 6.7 - Add the following cmake command to your project
CMakeLists.txt
target_include_directories(<your_target> PRIVATE Antilla/include)
target_link_directories(<your_target> PRIVATE Antilla/lib)
target_link_libraries(<your_target> PRIVATE AntillaBasic)- Add the following code to your
main.cpp
#include "antpp.h"
int main(int argc, char *argv[])
{
...
/*! Set OpenGL, optional */
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
QQuickWindow::setDefaultAlphaBuffer(true);
...
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
AntApp::initialize(&engine);
...
}- Add the following code to your
.qml
import Antilla.Basic
AntWindow {
...
}Alright, you can now enjoy using Antilla.
- Ant-d Components: https://ant-design.antgroup.com/components/overview
- Ant Design: https://ant-design.antgroup.com/docs/spec/introduce
Use MIT LICENSE
Windows 11 / Ubuntu 24.04.2, Qt Version >= 6.7


