KQuickIconProvider Class
Class which exposes the KIcon* functioality to QML. More...
- Header:
#include <KQuickIconProvider> - CMake:
find_package(KF6 REQUIRED COMPONENTS IconThemes)
target_link_libraries(mytarget PRIVATE KF6::IconThemes)
List of all members, including inherited members
Detailed Description
For dependency reasons, this is a header-only class.
This needs to be registered in the engine using the following code:
engine->addImageProvider(QStringLiteral("icon"), new KQuickIconProvider);