Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 645 Bytes

usage.md

File metadata and controls

31 lines (21 loc) · 645 Bytes

Usage

Installation

  1. 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)
  2. Link with the library in CMake.

    target_link_libraries(your_project oclero::qlementine)

Usage

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);