Search for usage in LXR

org::kde::kquickcontrols::ColorButton Class Reference

Inherits Button.


real _buttonMarigns
alias color
alias currentColor
alias dialogTitle
alias showAlphaChannel


void accepted (color color)

Detailed Description

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


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

Example usage:

onColorChanged: console.log(color)


Definition at line 28 of file ColorButton.qml.

Property Documentation

real org::kde::kquickcontrols::ColorButton::_buttonMarigns
This property is read-only

Definition at line 55 of file ColorButton.qml.

alias org::kde::kquickcontrols::ColorButton::color

The user selected color.

Definition at line 33 of file ColorButton.qml.

alias org::kde::kquickcontrols::ColorButton::currentColor

The color which the user has currently selected whilst the dialog is open For the color that is set when the dialog is accepted, use the color property.

Definition at line 42 of file ColorButton.qml.

alias org::kde::kquickcontrols::ColorButton::dialogTitle

Title to show in the dialog.

Definition at line 37 of file ColorButton.qml.

alias org::kde::kquickcontrols::ColorButton::showAlphaChannel

Allow the user to configure an alpha value.

Definition at line 46 of file ColorButton.qml.

Member Function Documentation

void org::kde::kquickcontrols::ColorButton::accepted ( color  color)

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


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon May 17 2021 22:39:10 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.