8#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtWidgets/qabstractspinbox.h>
16class Q_WIDGETS_EXPORT
QSpinBox :
public QAbstractSpinBox
20 Q_PROPERTY(QString suffix READ suffix WRITE setSuffix)
21 Q_PROPERTY(QString prefix READ prefix WRITE setPrefix)
22 Q_PROPERTY(QString cleanText READ cleanText)
23 Q_PROPERTY(
int minimum READ minimum WRITE setMinimum)
24 Q_PROPERTY(
int maximum READ maximum WRITE setMaximum)
25 Q_PROPERTY(
int singleStep READ singleStep WRITE setSingleStep)
26 Q_PROPERTY(StepType stepType READ stepType WRITE setStepType)
27 Q_PROPERTY(
int value READ value WRITE setValue NOTIFY valueChanged USER
true)
28 Q_PROPERTY(
int displayIntegerBase READ displayIntegerBase WRITE setDisplayIntegerBase)
31 explicit QSpinBox(QWidget *parent =
nullptr);
36 QString prefix()
const;
37 void setPrefix(
const QString &prefix);
39 QString suffix()
const;
40 void setSuffix(
const QString &suffix);
42 QString cleanText()
const;
44 int singleStep()
const;
45 void setSingleStep(
int val);
48 void setMinimum(
int min);
51 void setMaximum(
int max);
53 void setRange(
int min,
int max);
55 StepType stepType()
const;
56 void setStepType(StepType stepType);
58 int displayIntegerBase()
const;
59 void setDisplayIntegerBase(
int base);
62 bool event(QEvent *event) override;
63 QValidator::State validate(QString &input,
int &pos)
const override;
64 virtual int valueFromText(
const QString &text)
const;
65 virtual QString textFromValue(
int val)
const;
66 void fixup(QString &str)
const override;
70 void setValue(
int val);
73 void valueChanged(
int);
74 void textChanged(
const QString &);
77 Q_DISABLE_COPY(QSpinBox)
78 Q_DECLARE_PRIVATE(QSpinBox)
86 Q_PROPERTY(QString prefix READ prefix WRITE setPrefix)
87 Q_PROPERTY(QString suffix READ suffix WRITE setSuffix)
88 Q_PROPERTY(QString cleanText READ cleanText)
89 Q_PROPERTY(
int decimals READ decimals WRITE setDecimals)
90 Q_PROPERTY(
double minimum READ minimum WRITE setMinimum)
91 Q_PROPERTY(
double maximum READ maximum WRITE setMaximum)
92 Q_PROPERTY(
double singleStep READ singleStep WRITE setSingleStep)
93 Q_PROPERTY(StepType stepType READ stepType WRITE setStepType)
94 Q_PROPERTY(
double value READ value WRITE setValue NOTIFY valueChanged USER
true)
96 explicit QDoubleSpinBox(QWidget *parent =
nullptr);
101 QString prefix()
const;
102 void setPrefix(
const QString &prefix);
104 QString suffix()
const;
105 void setSuffix(
const QString &suffix);
107 QString cleanText()
const;
109 double singleStep()
const;
110 void setSingleStep(
double val);
112 double minimum()
const;
113 void setMinimum(
double min);
115 double maximum()
const;
116 void setMaximum(
double max);
118 void setRange(
double min,
double max);
120 StepType stepType()
const;
121 void setStepType(StepType stepType);
123 int decimals()
const;
124 void setDecimals(
int prec);
126 QValidator::State validate(QString &input,
int &pos)
const override;
127 virtual double valueFromText(
const QString &text)
const;
128 virtual QString textFromValue(
double val)
const;
129 void fixup(QString &str)
const override;
132 void setValue(
double val);
135 void valueChanged(
double);
136 void textChanged(
const QString &);
139 Q_DISABLE_COPY(QDoubleSpinBox)
140 Q_DECLARE_PRIVATE(QDoubleSpinBox)
void releaseColorPicking()
QColor grabScreenColor(const QPoint &p)
bool selectColor(const QColor &color)
void init(const QColor &initial)
void setCurrentAlpha(int a)
QColorPickingEventFilter * colorPickingEventFilter
bool handleColorPickingMouseButtonRelease(QMouseEvent *e)
QColor currentQColor() const
void updateColorPicking()
bool handleColorPickingMouseMove(QMouseEvent *e)
QLabel * lblScreenColorInfo
void _q_setCustom(int index, QRgb color)
QPushButton * eyeDropperButton
void updateColorLabelText(const QPoint &)
void setCurrentColor(const QColor &color, SetColorMode setColorMode=SetColorAll)
bool isAlphaVisible() const
void setCurrentQColor(const QColor &color)
bool canBeNativeDialog() const override
void setCurrentRgbColor(QRgb rgb)
void retranslateStrings()
QRgb currentColor() const
void newColorTypedIn(QRgb rgb)
bool handleColorPickingKeyPress(QKeyEvent *e)
void updateColorPicking(const QPoint &pos)
QSharedPointer< QColorDialogOptions > options
void newStandard(int, int)
void setVisible(bool visible) override
QDialogButtonBox * buttons
bool supportsColorPicking() const
QPointer< QObject > receiverToDisconnectOnClose
QRgb beforeScreenColorPicking
virtual void initHelper(QPlatformDialogHelper *h) override
QByteArray memberToDisconnectOnClose
void newHsv(int h, int s, int v)
virtual void helperPrepareShow(QPlatformDialogHelper *h) override
QColorLuminancePicker * lp
QPlatformColorDialogHelper * platformColorDialogHelper() const
void nextCustom(int, int)
The QColorDialog class provides a dialog widget for specifying colors.
The QDoubleSpinBox class provides a spin box widget that takes doubles.
\inmodule QtCore\reentrant
The QSpinBox class provides a spin box widget.
\variable QStyleOption::palette
\variable QStyleOptionFocusRect::backgroundColor
QColSpinBox(QWidget *parent)
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
void mouseMoveEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse move events ...
void setCol(int h, int s)
void mousePressEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse press events...
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
void mouseMoveEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse move events ...
QSize sizeHint() const override
void setCrossVisible(bool visible)
void resizeEvent(QResizeEvent *) override
This event handler can be reimplemented in a subclass to receive widget resize events which are passe...
void mousePressEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse press events...
bool eventFilter(QObject *, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
void applicationStateChanged(Qt::ApplicationState state)
QColorPickingEventFilter(QColorDialogPrivate *dp, QObject *parent)
void mouseReleaseEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse release even...
void mousePressEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse press events...
void mouseMoveEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse move events ...
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
QColor currentQColor() const
void setCurrentAlpha(int a)
bool isAlphaVisible() const
void setHsv(int h, int s, int v)
void retranslateStrings()
QRgb currentColor() const
void currentColorChanged(const QColor &color)
QColorWell(QWidget *parent, int r, int c, const QRgb *vals)
void paintCellContents(QPainter *, int row, int col, const QRect &) override
void mousePressEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse press events...
void mouseMoveEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse move events ...
void mouseReleaseEvent(QMouseEvent *e) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse release even...
friend class QT_PREPEND_NAMESPACE(QUntypedBindable)
void mouseReleaseEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse release even...
void focusOutEvent(QFocusEvent *) override
This event handler can be reimplemented in a subclass to receive keyboard focus events (focus lost) f...
void currentChanged(int row, int col)
int columnAt(int x) const
void updateCell(int row, int column)
void colorChanged(int index, QRgb color)
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
void mousePressEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse press events...
void focusInEvent(QFocusEvent *) override
This event handler can be reimplemented in a subclass to receive keyboard focus events (focus receive...
virtual void setCurrent(int row, int col)
virtual void setSelected(int row, int col)
QRect cellGeometry(int row, int column)
virtual void paintCell(QPainter *, int row, int col, const QRect &)
int columnX(int column) const
QSize sizeHint() const override
virtual void paintCellContents(QPainter *, int row, int col, const QRect &)
int selectedColumn() const
void keyPressEvent(QKeyEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive key press events f...
QString cellContent(int row, int col) const
QtPrivate::QColorShower QColorShower
static void rgb2hsv(QRgb rgb, int &h, int &s, int &v)
QtPrivate::QColorWell QColorWell
QtPrivate::QWellArray QWellArray
QtPrivate::QColorPickingEventFilter QColorPickingEventFilter
QtPrivate::QColorLuminancePicker QColorLuminancePicker
QtPrivate::QColorPicker QColorPicker
static const Qt::WindowFlags qcd_DefaultWindowFlags
QT_REQUIRE_CONFIG(colordialog)
QT_REQUIRE_CONFIG(progressbar)
QT_REQUIRE_CONFIG(thread)