Usage
Installation
- Add the library as a dependency with CMake FetchContent.
include(FetchContent)
FetchContent_Declare(Qlementine GIT_REPOSITORY "https://github.com/oclero/qlementine.git")
FetchContent_MakeAvailable(Qlementine)
- Link with the library in CMake.
Usage in code
Define the QStyle
on your QApplication
.
#include <oclero/qlementine.hpp>
QApplication app(argc, argv);
auto* style = new oclero::qlementine::QlementineStyle(&app);
QApplication::setStyle(style);
Themes
You may want to use your own JSON theme.
Additionnally, you can also use ThemeManager
to handle that for you.