Modern QStyle for desktop Qt5 applications.
- Platform: Windows, MacOS, Linux.
- CMake 3.19+
- Qt 5.15+
This library contains:
- A custom
QStyle
namedQlementineStyle
, that implements all the necessary API to give a modern look and feel to your Qt application. It's a drop-in replacement for the defaultQStyle
. - An actual way to have client-side decoration (CSD) on your Qt window, with actual OS window animations and effects. (Windows only, at the moment)
- Lots of utilities to help you write beautiful Qt widgets.
-
Add the library's repository as a Git submodule.
git submodule add git@github.com:oclero/qlementine.git submodules/qlementine
-
Download submodules.
git submodule update --init --recursive
-
Add the library to your CMake project.
add_subdirectory(submodules/qlementine)
-
Link with the library in CMake.
target_link_libraries(your_project oclero::qlementine)
-
Define the
QStyle
on yourQApplication
.#include <oclero/qlementine.hpp> QApplication app(argc, argv); auto* style = new oclero::qlementine::QlementineStyle(&app); style->setThemeJsonPath(":/light.json"); QApplication::setStyle(style);
Olivier Cléro | email | website | github | gitlab
Qlementine is available under the MIT license. See the LICENSE file for more info.