QtColorButton Class | Extending Qt Creator Manual

Extending Qt Creator Manual | QtColorButton

Extending Qt Creator Manual 4.6.0

# QtColorButton Class

(Utils::QtColorButton)

- List of all members, including inherited members

## Properties

- alphaAllowed : bool
- backgroundCheckered : bool
- color : QColor

## Public Functions

| QtColorButton(QWidget *parent = 0)
| ~QtColorButton()
QColor | color() const
bool | isAlphaAllowed() const
bool | isBackgroundCheckered() const
void | setAlphaAllowed(bool allowed)
void | setBackgroundCheckered(bool checkered)

## Public Slots

void | setColor(const QColor &color)

## Signals

void | colorChanged(const QColor &color)

## Protected Functions

void | dragEnterEvent(QDragEnterEvent *event)
void | dragLeaveEvent(QDragLeaveEvent *event)
void | dropEvent(QDropEvent *event)
void | mouseMoveEvent(QMouseEvent *event)
void | mousePressEvent(QMouseEvent *event)
void | paintEvent(QPaintEvent *event)

## Property Documentation

### alphaAllowed : bool

Access functions:

bool | isAlphaAllowed() const
void | setAlphaAllowed(bool allowed)

### backgroundCheckered : bool

Access functions:

bool | isBackgroundCheckered() const
void | setBackgroundCheckered(bool checkered)

### color : QColor

Access functions:

QColor | color() const
void | setColor(const QColor &color)

## Member Function Documentation

### QtColorButton::QtColorButton(QWidget *parent = 0)

Default constructs an instance of QtColorButton.

### QtColorButton::~QtColorButton()

Destroys the instance of QtColorButton.

### `[signal]` void QtColorButton::colorChanged(const QColor &color)

### `[protected]` void QtColorButton::dragEnterEvent(QDragEnterEvent *event)

### `[protected]` void QtColorButton::dragLeaveEvent(QDragLeaveEvent *event)

### `[protected]` void QtColorButton::dropEvent(QDropEvent *event)

### `[protected]` void QtColorButton::mouseMoveEvent(QMouseEvent *event)

### `[protected]` void QtColorButton::mousePressEvent(QMouseEvent *event)

### `[protected]` void QtColorButton::paintEvent(QPaintEvent *event)