4#ifndef QABSTRACTSPINBOX_H
5#define QABSTRACTSPINBOX_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qwidget.h>
9#include <QtGui/qvalidator.h>
18class QStyleOptionSpinBox;
27 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly)
29 Q_PROPERTY(
QString specialValueText READ specialValueText WRITE setSpecialValueText)
31 Q_PROPERTY(
bool accelerated READ isAccelerated WRITE setAccelerated)
33 Q_PROPERTY(
bool acceptableInput READ hasAcceptableInput)
34 Q_PROPERTY(
bool keyboardTracking READ keyboardTracking WRITE setKeyboardTracking)
35 Q_PROPERTY(
bool showGroupSeparator READ isGroupSeparatorShown WRITE setGroupSeparatorShown)
41 StepDownEnabled = 0x02 };
47 ButtonSymbols buttonSymbols()
const;
48 void setButtonSymbols(ButtonSymbols bs);
53 void setCorrectionMode(CorrectionMode cm);
54 CorrectionMode correctionMode()
const;
56 bool hasAcceptableInput()
const;
59 QString specialValueText()
const;
62 bool wrapping()
const;
65 void setReadOnly(
bool r);
66 bool isReadOnly()
const;
68 void setKeyboardTracking(
bool kt);
69 bool keyboardTracking()
const;
75 bool hasFrame()
const;
77 void setAccelerated(
bool on);
78 bool isAccelerated()
const;
80 void setGroupSeparatorShown(
bool shown);
81 bool isGroupSeparatorShown()
const;
93 virtual void stepBy(
int steps);
97 AdaptiveDecimalStepType
105 virtual void clear();
110#if QT_CONFIG(wheelevent)
111 void wheelEvent(QWheelEvent *
event)
override;
115#if QT_CONFIG(contextmenu)
127 virtual void initStyleOption(QStyleOptionSpinBox *
option)
const;
132 virtual StepEnabled stepEnabled()
const;
140 Q_PRIVATE_SLOT(d_func(),
void _q_editorCursorPositionChanged(
int,
int))
144 friend class QAccessibleAbstractSpinBox;
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
void editingFinished()
This signal is emitted editing is finished.
StepEnabledFlag
\value StepNone \value StepUpEnabled \value StepDownEnabled
CorrectionMode
This enum type describes the mode the spinbox will use to correct an \l{QValidator::}{Intermediate} v...
StepType
\value DefaultStepType \value AdaptiveDecimalStepType
ButtonSymbols
This enum type describes the symbols that can be displayed on the buttons in a spin box.
The QCloseEvent class contains parameters that describe a close event.
The QFocusEvent class contains event parameters for widget focus events.
The QHideEvent class provides an event which is sent after a widget is hidden.
The QKeyEvent class describes a key event.
The QLineEdit widget is a one-line text editor.
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
The QPaintEvent class contains event parameters for paint events.
The QResizeEvent class contains event parameters for resize events.
The QShowEvent class provides an event that is sent when a widget is shown.
\macro QT_RESTRICTED_CAST_FROM_ASCII
State
This enum type defines the states in which a validated string can exist.
Combined button and popup list for selecting options.
static jboolean selectAll(JNIEnv *, jobject)
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLfloat GLfloat GLfloat w
[0]
GLenum GLenum GLenum input
#define QT_REQUIRE_CONFIG(feature)
label setAlignment(Qt::AlignLeft|Qt::AlignTop)
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent