-
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.
target_link_libraries(your_project oclero::qlementine)
Define the QStyle
on your QApplication
.
#include <oclero/qlementine.hpp>
QApplication app(argc, argv);
auto* style = new oclero::qlementine::QlementineStyle(&app);
style->setThemeJsonPath(":/light.json");
QApplication::setStyle(style);