Class ColorButton

Inheritance Relationships

Base Type

  • public QPushButton

Class Documentation

class ColorButton : public QPushButton

The ColorButton widget provides a color display that the user can click on to select a new color. You can use this widget in Qt Designer by placing a QPushButton and promoting it to a custom widget. You have to setup the promoted widget once in each .ui file:

Base class name: QPushButton Promoted class name: mapviz::ColorButton Include file name: mapviz/color_button.h Global Include: True

Public Functions

explicit ColorButton(QWidget *parent = 0)
inline const QColor &color() const

Public Slots

void setColor(const QColor &color)

Signals

void colorEdited(const QColor &color)
void colorChanged(const QColor &color)