|On this page|
The widget is a customizable color palette from which a color can be selected.
This class inherits from Qt’s
When user clicks a color, this signal is emitted with the position in the list of colors (index) and the selected color (QtGui.QColor).
When user finishes editing a color, this signal is emitted with the position in the list of colors (index) and the new color value (QtGui.QColor).
Emitted when setColorList() is called on the widget.
Create and return a new ColorPalette object.
If set to a
QtCore.QPoint object, the color palette will open with
its center at the specified location.
If a parent is specified, the color palette will not be destroyed when hidden.
Returns the sequence of QColor values representing the colors in the palette.
Length of the sides of color squares within the palette.
Returns True if alt-clicking to edit colors is enabled.
Returns True if the dialog has been accepted or rejected.
Returns the color that was clicked.
Sets the list of colors shown by the palette.
colors must be a list of
Sets the length of the sides of the color squares within the palette.
size must be an integer.
Sets whether alt-clicking colors allow them to be edited.
allow must be