|
cut 3.4.2
|
Button widget that opens a color dialog to select a color. More...
#include <CutWidgets.h>
Public Slots | |
| void | SelectNewColor () |
| Open the color dialog to let the user select a new color. | |
| void | SetColor (const QColor &newColor) |
| Set the color programmatically. | |
Signals | |
| void | ColorChanged (QColor newColor) |
| Emitted when the color changes. | |
Public Member Functions | |
| QeColorSelector (QWidget *parent=nullptr) | |
| Construct a QeColorSelector widget. | |
| QColor | GetColor () const |
| Get the currently selected color. | |
| void | ResetColor () |
| Reset the color to its default value. | |
Properties | |
| QColor | color |
| The currently selected color. | |
Button widget that opens a color dialog to select a color.
Displays the currently selected color as its background. Clicking the button opens a standard color dialog where the user can pick a new color.
|
explicit |
Construct a QeColorSelector widget.
| parent | Parent widget. |
|
signal |
Emitted when the color changes.
| newColor | The new QColor. |
| QColor QeColorSelector::GetColor | ( | ) | const |
Get the currently selected color.
|
slot |
Set the color programmatically.
| newColor | The new QColor to set. |
|
readwrite |
The currently selected color.