KCModuleLoader

KCModuleLoader Namespace Reference

Functions

KCMUTILS_EXPORT KCModuleloadModule (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
metaDataKPluginMetaData for loading the plugin
engineQQmlEngine 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 Mon Nov 18 2024 12:15:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.