Olivier Cléro

Qlementine

01/01/2024

Presentation

Qlementine is a modern QStyle for desktop Qt5/Qt6 applications.

As written in my previous article, a QStyle is a class that changes the look and feel of a Qt Application. Qlementine implements all the necessary API to give a modern look and feel to your Qt application. It’s a drop-in replacement for the default QStyle.

NB: Also, I made an icon library to compliment this QStyle.

Features

  • A runtime-themable QStyle (yes, it supports light and dark themes);
  • Animations for widget states and properties;
  • Better performance than using Qt’s CSS;
  • Beautiful and modern new QWidgets;
  • Utilites to use with QPainter.

Usage

Define the QStyle on your QApplication.

1
2
3
4
5
6
7
#include <oclero/qlementine.hpp>

QApplication app(argc, argv);

auto* style = new oclero::qlementine::QlementineStyle(&app);
style->setThemeJsonPath(":/light.json");
QApplication::setStyle(style);

Information