ColorButton QML Type

A pushbutton to display or allow user selection of a color. More...

Import Statement: import org.kde.kquickcontrols

Properties

Signals

Detailed Description

This widget can be used to display or allow user selection of a color.

Example usage:

import org.kde.kquickcontrols

ColorButton {
  onColorChanged: console.log(color)
}

Property Documentation

ColorDialog dialogTitle : string

Title to show in the dialog.

color : color

The user-selected color.

dialogTitle : alias

Title to show in the dialog.

showAlphaChannel : bool

Allow the user to configure an alpha value.

Signal Documentation

accepted(color color)

This signal is emitted when the color dialog has been accepted.

Note: The corresponding handler is onAccepted.