org::kde::kquickcontrols::ColorButton

Search for usage in LXR

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

Inherits Button.

Properties

real _buttonMarigns
 
alias color
 
alias currentColor
 
alias dialogTitle
 
alias showAlphaChannel
 

Signals

void accepted (color color)
 

Detailed Description

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

Since
2.0

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

Example usage:

import org.kde.kquickcontrols 2.0
ColorButton {
[...]
onColorChanged: console.log(color)
}

@inherits QtQuick.Controls.Button

Definition at line 28 of file ColorButton.qml.

Property Documentation

◆ _buttonMarigns

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

Definition at line 55 of file ColorButton.qml.

◆ color

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

The user selected color.

Definition at line 33 of file ColorButton.qml.

◆ currentColor

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

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.

◆ dialogTitle

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

Title to show in the dialog.

Definition at line 37 of file ColorButton.qml.

◆ showAlphaChannel

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

Allow the user to configure an alpha value.

Definition at line 46 of file ColorButton.qml.

Member Function Documentation

◆ accepted

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

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

Since
5.61

The documentation for this class was generated from the following file:
alias color
The user selected color.
Definition: ColorButton.qml:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:01:45 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.