ColorButton

Search for usage in LXR

ColorButton Class Reference

Properties

alias color
 
alias dialogTitle
 
bool showAlphaChannel
 

Signals

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:

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

@inherits QtQuick.Controls.Button

Definition at line 25 of file ColorButton.qml.

Property Documentation

◆ color

alias ColorButton::color
read

The user selected color.

Definition at line 30 of file ColorButton.qml.

◆ dialogTitle

alias ColorButton::dialogTitle
read

Title to show in the dialog.

Definition at line 34 of file ColorButton.qml.

◆ showAlphaChannel

bool ColorButton::showAlphaChannel
read

Allow the user to configure an alpha value.

Definition at line 38 of file ColorButton.qml.

Member Function Documentation

◆ accepted

void 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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 3 2025 11:47:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.