Olivier Cléro

Qlementine Icons

31/12/2023

Qlementine Icons is a sleek, elegant and vector icon library. It features 350+ icons, covering the most common usages in software development. It is aimed to be paired with the usage of Qlementine.

The icons are licensed under the MIT license so can be used in a commercial app. If you need more i

Preview

Qt Library

Currently, it comes as a C++ library for Qt applications, that exposes an Qt Icon Theme.

You can use the following methods to retrieve an icon:

  1. With QIcon::fromTheme(), by using the icon name.

    1
    2
    
    const auto icon = QIcon::fromTheme("redo");
    const auto pixmap = icon.pixmap(QSize(16, 16));
    
  2. With QIcon::fromTheme(), by using the Freedesktop standard identifier, if the icon has one.

    1
    2
    3
    
    const auto iconName = oclero::qlementine::icons::fromFreeDesktop("edit-redo");
    const auto icon = QIcon::fromTheme(iconName);
    const auto pixmap = icon.pixmap(QSize(16, 16));
    
  3. With QPixmap. Note that the resulting image will be 16×16 pixels.

    1
    
    const auto pixmap = QPixmap(":/qlementine/icons/redo.svg");
    
  4. With QIcon, to get any size.

    1
    2
    
    const auto icon = QIcon(":/qlementine/icons/redo.svg");
    const auto pixmap = icon.pixmap(QSize(64, 64));