Pages
API Documentation
On this page

KCMLauncher QML Type (Singleton)

Utilities for KDE System Settings modules. More...

  • Import Statement: import org.kde.kcmutils

Note: Note: This type is a QML singleton. There is only one instance of this type in the QML engine.

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.