42 #ifndef QABSTRACTSPINBOX_H 43 #define QABSTRACTSPINBOX_H 45 #include <QtGui/qwidget.h> 46 #include <QtGui/qvalidator.h> 69 Qt::Alignment alignment;
77 bool keyboardTracking;
83 StepDownEnabled = 0x02 };
96 bool hasAcceptableInput()
const;
99 QString specialValueText()
const;
100 void setSpecialValueText(
const QString &txt);
102 bool wrapping()
const;
103 void setWrapping(
bool w);
105 void setReadOnly(
bool r);
106 bool isReadOnly()
const;
108 void setKeyboardTracking(
bool kt);
109 bool keyboardTracking()
const;
111 void setAlignment(Qt::Alignment flag);
112 Qt::Alignment alignment()
const;
115 bool hasFrame()
const;
117 void setAccelerated(
bool on);
118 bool isAccelerated()
const;
122 void interpretText();
128 virtual void fixup(
QString &input)
const;
130 virtual void stepBy(
int steps);
135 virtual void clear();
140 #ifndef QT_NO_WHEELEVENT 160 virtual StepEnabled stepEnabled()
const;
162 void editingFinished();
168 Q_PRIVATE_SLOT(d_func(),
void _q_editorCursorPositionChanged(
int,
int))
175 #endif // QT_NO_SPINBOX 181 #endif // QABSTRACTSPINBOX_H The QVariant class acts like a union for the most common Qt data types.
The QKeyEvent class describes a key event.
#define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QWheelEvent class contains parameters that describe a wheel event.
virtual void timerEvent(QTimerEvent *)
This event handler can be reimplemented in a subclass to receive timer events for the object...
static void clear(QVariant::Private *d)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
ButtonSymbols
This enum type describes the symbols that can be displayed on the buttons in a spin box...
#define QT_BEGIN_NAMESPACE
This macro expands to.
CorrectionMode
This enum type describes the mode the spinbox will use to correct an QValidator::Intermediate value i...
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box...
The QHideEvent class provides an event which is sent after a widget is hidden.
The QResizeEvent class contains event parameters for resize events.
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
The QShowEvent class provides an event that is sent when a widget is shown.
The QMouseEvent class contains parameters that describe a mouse event.
The QTimerEvent class contains parameters that describe a timer event.
State
This enum type defines the states in which a validated string can exist.
The QLineEdit widget is a one-line text editor.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QPaintEvent class contains event parameters for paint events.
The QEvent class is the base class of all event classes.
The QCloseEvent class contains parameters that describe a close event.
The QFocusEvent class contains event parameters for widget focus events.