KCModuleLoader
KCModuleLoader Namespace Reference
Functions | |
KCMUTILS_EXPORT KCModule * | loadModule (const KPluginMetaData &metaData, QWidget *parent=nullptr, const QVariantList &args={}, const std::shared_ptr< QQmlEngine > &engine={}) |
Detailed Description
Loads a KCModule In case the provided metadata points to a KQuickConfigModule, it is wrapped in a KCModule.
Function Documentation
◆ loadModule()
KCModule * KCModuleLoader::loadModule | ( | const KPluginMetaData & | metaData, |
QWidget * | parent = nullptr, | ||
const QVariantList & | args = {}, | ||
const std::shared_ptr< QQmlEngine > & | engine = {} ) |
Loads a KCModule.
If loading fails a KCM which displays an error message is returned.
- Parameters
-
metaData KPluginMetaData for loading the plugin engine QQmlEngine that will be used for KQuickConfigModule classes. If none is set, a internal engine will be created and reused for further modules. In case your app already has an engine, you should pass it in explicitly
- Returns
- a pointer to the loaded KCModule
Definition at line 76 of file kcmoduleloader.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:51:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.