KDE Namespace
Header: | #include <KDE> |
CMake: | find_package(KF6 REQUIRED COMPONENTS IconThemes) target_link_libraries(mytarget PRIVATE KF6::IconThemes) |
Functions
(since 5.0) QIcon | icon(const QString &iconName, KIconLoader *iconLoader = nullptr) |
(since 5.0) QIcon | icon(const QString &iconName, const KIconColors &colors, KIconLoader *iconLoader = nullptr) |
(since 5.0) QIcon | icon(const QString &iconName, const QStringList &overlays, KIconLoader *iconLoader = nullptr) |
Detailed Description
Function Documentation
[since 5.0]
QIcon icon(const QString &iconName, KIconLoader *iconLoader = nullptr)
Returns a QIcon with an appropriate KIconEngine to perform loading and rendering. KIcons thus adhere to KDE style and effect standards.
This function was introduced in 5.0.
[since 5.0]
QIcon icon(const QString &iconName, const KIconColors &colors, KIconLoader *iconLoader = nullptr)
Returns a QIcon with an appropriate KIconEngine to perform loading and rendering. KIcons thus adhere to KDE style and effect standards.
This function was introduced in 5.0.
[since 5.0]
QIcon icon(const QString &iconName, const QStringList &overlays, KIconLoader *iconLoader = nullptr)
Returns a QIcon for the given icon, with additional overlays.
This function was introduced in 5.0.