KCMUtils

kquickconfigmoduleloader.h
1/*
2 SPDX-FileCopyrightText: 2023 Alexander Lohnau <alexander.lohnau@gmx.de>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KQUICKCONFIGMODULELOADER_H
7#define KQUICKCONFIGMODULELOADER_H
8
9#include "kcmutilsquick_export.h"
10
11#include <KPluginFactory>
12#include <memory>
13
14class QQmlEngine;
16
17namespace KQuickConfigModuleLoader
18{
19/**
20 * Loads a QML KCM from the given plugin metadata.
21 * @param engine The QQmlEngine to use, if not set, an internal engine will be created. If your application has an exisiting engine, this must be passed in.
22 */
24loadModule(const KPluginMetaData &metaData, QObject *parent = nullptr, const QVariantList &args = {}, const std::shared_ptr<QQmlEngine> &engine = {});
25}
26#endif
The base class for QtQuick configuration modules.
KCMUTILS_EXPORT KCModule * loadModule(const KPluginMetaData &metaData, QWidget *parent=nullptr, const QVariantList &args={}, const std::shared_ptr< QQmlEngine > &engine={})
Loads a KCModule.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:56 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.