Pages
API Documentation
On this page

SettingStateBinding QML Type

SettingStateBinding automatically impacts the representation of an item based on the state of a setting. This type was introduced in Qt 6.0. More...

  • Import Statement: import org.kde.kcmutils
  • Since: Qt 6.0
  • Inherits: Loader

Detailed Description

It will disable the item if the setting is immutable and use a visual indicator for the state of the setting.

This is a higher level convenience wrapper for SettingStateProxy and SettingHighlighter.

Property Documentation

configObject : KCoreConfigSkeleton

The config object which will be monitored for setting state changes.

extraEnabledConditions : bool

SettingStateBinding will manage the enabled property of the target based on the immutability state of the setting it represents.

Sometimes that enabled state needs to bind to other properties as well to be computed properly. This extra condition will thus be combined with the immutability state of the setting to determine the effective enabled state of the target.

[read-only] nonDefaultHighlightVisible : bool

Expose whether the non default highlight is visible.

Allow one to implement highlight with custom items.

settingName : string

The name of the setting in the config object to be monitored.

target : Item

The graphical element whose state we want to manage based on a setting.

If target is not set, it will try to find the visual parent item.

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