KCMUtils
kquickconfigmoduleloader.cpp
19KQuickConfigModuleLoader::loadModule(const KPluginMetaData &metaData, QObject *parent, const QVariantList &args, const std::shared_ptr<QQmlEngine> &engineArg)
33 const QVariantList pluginArgs = QVariantList(args) << metaData.rawData().value(QLatin1String("X-KDE-KCM-Args")).toArray().toVariantList();
36 engineArg ? engineArg : (s_kcmutilsCreatedEngine.expired() ? std::make_shared<QQmlEngine>() : s_kcmutilsCreatedEngine.lock());
QString errorString
QString errorText
static Result< KPluginFactory > loadFactory(const KPluginMetaData &data)
T * create(QObject *parent=nullptr, const QVariantList &args={})
void setMetaData(const KPluginMetaData &metaData)
QJsonObject rawData() const
QString fileName() const
The base class for QtQuick configuration modules.
Definition kquickconfigmodule.h:106
QVariantList toVariantList() const const
QJsonValue value(QLatin1StringView key) const const
QJsonArray toArray() const const
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
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.