A utility class for sampling colors from the screen.
More...
#include <qgscolorpickerhelper.h>
|
| void | activate (int sampleRadius=0) |
| | Activates the color picking operation.
|
|
| void | canceled () |
| | Emitted when the user cancels the picking operation.
|
| void | colorHovered (const QColor &color) |
| | Emitted when the user hovers over a color from the screen.
|
| void | colorPicked (const QColor &color) |
| | Emitted when the user has finished picking a color from the screen.
|
|
| bool | eventFilter (QObject *watched, QEvent *event) override |
A utility class for sampling colors from the screen.
- Note
- Not available in Python bindings.
- Since
- QGIS 4.4
Definition at line 43 of file qgscolorpickerhelper.h.
◆ QgsColorPickerHelper()
| QgsColorPickerHelper::QgsColorPickerHelper |
( |
QObject * | parent | ) |
|
◆ ~QgsColorPickerHelper()
| QgsColorPickerHelper::~QgsColorPickerHelper |
( |
| ) |
|
|
override |
◆ activate
| void QgsColorPickerHelper::activate |
( |
int | sampleRadius = 0 | ) |
|
|
slot |
◆ canceled
| void QgsColorPickerHelper::canceled |
( |
| ) |
|
|
signal |
Emitted when the user cancels the picking operation.
◆ colorHovered
| void QgsColorPickerHelper::colorHovered |
( |
const QColor & | color | ) |
|
|
signal |
Emitted when the user hovers over a color from the screen.
◆ colorPicked
| void QgsColorPickerHelper::colorPicked |
( |
const QColor & | color | ) |
|
|
signal |
Emitted when the user has finished picking a color from the screen.
◆ eventFilter()
| bool QgsColorPickerHelper::eventFilter |
( |
QObject * | watched, |
|
|
QEvent * | event ) |
|
overrideprotected |
The documentation for this class was generated from the following files: