KCModuleLoader Namespace
- Header:
#include <KCModuleLoader> - CMake:
find_package(KF6 REQUIRED COMPONENTS KCMUtils)
target_link_libraries(mytarget PRIVATE KF6::KCMUtils)
Detailed Description
In case the provided metadata points to a KQuickConfigModule, it is wrapped in a KCModule.
Function Documentation
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.
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