Kirigami::Platform::PlatformPluginFactory Class
This class is reimplemented by plugins to provide different implementations of PlatformTheme. More...
- Header:
#include <Kirigami/Platform/PlatformPluginFactory> - CMake:
find_package(KF6 REQUIRED COMPONENTS KirigamiPlatform)
target_link_libraries(mytarget PRIVATE KF6::KirigamiPlatform) - Inherits: QObject
List of all members, including inherited members
Public Functions
- Kirigami::Platform::PlatformTheme *createPlatformTheme(QObject *parent)
- Kirigami::Platform::Units *createUnits(QObject *parent)
Static Public Members
Detailed Description
Member Function Documentation
[pure virtual] Kirigami::Platform::PlatformTheme *PlatformPluginFactory::createPlatformTheme(QObject *parent)
Creates an instance of PlatformTheme which can come out from an implementation provided by a plugin.
If this returns nullptr the PlatformTheme will use a fallback implementation that loads a theme definition from a QML file.
parent The parent object of the created PlatformTheme
[pure virtual] Kirigami::Platform::Units *PlatformPluginFactory::createUnits(QObject *parent)
Creates an instance of Units which can come from an implementation provided by a plugin
parent The parent of the units object
[static] Kirigami::Platform::PlatformPluginFactory *PlatformPluginFactory::findPlugin(const QString &pluginName = {})
Finds the plugin providing units and platformtheme for the current style The plugin pointer is cached, so only the first call is a potentially heavy operation
pluginName The name we want to search for, if empty the name of the current QtQuickControls style will be searched.
Returns a pointer to the PlatformPluginFactory of the current style.