Pages
API Documentation
On this page

KIconEngine Class

A class to provide rendering of KDE icons. More...

  • Header: #include <KIconEngine>
  • CMake: find_package(KF6 REQUIRED COMPONENTS IconThemes)
    target_link_libraries(mytarget PRIVATE KF6::IconThemes)
  • Inherits: QIconEngine

List of all members, including inherited members

Public Functions

Detailed Description

This is mostly used to provide Qt's icon loading in plasma-integration

Application developers should use QIcon::fromTheme instead of using it directly.

Member Function Documentation

KIconEngine::KIconEngine(const QString &iconName, KIconLoader *iconLoader, const QStringList &overlays)

Constructs an icon engine for a named icon.

iconName the name of the icon to load

iconLoader The icon loader that this engine is to use.

overlays Add one or more overlays to the icon. See KIconLoader::Overlays.

See also KIconLoader

KIconEngine::KIconEngine(const QString &iconName, const KIconColors &colors, KIconLoader *iconLoader)

Constructs an icon engine for a KDE named icon with a specific palette.

iconName the name of the icon to load

colors defines the colors we want to be applied on this icon

iconLoader The KDE icon loader that this engine is to use.

[since 6.1] KIconEngine::KIconEngine(const QString &iconName, const KIconColors &colors, KIconLoader *iconLoader, const QStringList &overlays)

Constructs an icon engine for a KDE named icon with a specific palette and overlays.

iconName the name of the icon to load

colors defines the colors we want to be applied on this icon

iconLoader The KDE icon loader that this engine is to use.

overlays Add one or more overlays to the icon. See KIconLoader::Overlays.

This function was introduced in Qt 6.1.

KIconEngine::KIconEngine(const QString &iconName, KIconLoader *iconLoader)

This is an overloaded function.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.