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) |
Since: | 5.98 |
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);