Pages
API Documentation
On this page

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);
We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.