KCMLauncher QML Type (Singleton)
| Import Statement: | import org.kde.kcmutils |
Note: This type is a QML singleton. There is only one instance of this type in the QML engine.
Methods
- void open(list<string> names)
- void openInfoCenter(string name)
- void openSystemSettings(string name, list<string> args)
Detailed Description
This is a QML singleton.
Method Documentation
void open(list<string> names)
void openInfoCenter(string name)
Opens the specified module in InfCenter. Only a single KCM name may be provided.
import QtQuick.Controls as QQC2 import org.kde.kcmutils as KCMUtils QQC2.Button { onClicked: KCMUtils.KCMLauncher.openInfoCenter("kcm_energy") }
name A single kcm name to open in Info Center. Opening multiple KCMs using this function is not supported; to do that, use KCMLauncher.open().
void openSystemSettings(string name, list<string> args = [])
Opens the specified module in System Settings. Only a single KCM name may be provided.
import QtQuick.Controls as QQC2 import org.kde.kcmutils as KCMUtils QQC2.Button { onClicked: KCMUtils.KCMLauncher.openSystemSettings("kcm_kscreen") }
name A single kcm name to open in System Settings. Opening multiple KCMs using this function is not supported; to do that, use KCMLauncher.open(). args Additional arguments to pass to the module.