![]() |
Home · Overviews · Examples |
The QAbstractSpinBox class provides a spinbox and a line edit to display values. More...
Inherits QWidget.
Inherited by QDateTimeEdit, QDoubleSpinBox, and QSpinBox.
The QAbstractSpinBox class provides a spinbox and a line edit to display values.
The class is designed as a common super class for widgets like QSpinBox, QDoubleSpinBox and QDateTimeEdit
Here are the main properties of the class:
QAbstractSpinBox provides a virtual stepBy function that is called whenever the user triggers a step. This function takes an integer value to signify how many steps were taken. E.g. Pressing Qt::Key_Down will trigger a call to stepBy(-1).
QAbstractSpinBox also provide a virtual function stepEnabled to determine whether stepping up/down is allowed at any point. This function returns a bitset of StepEnabled.
See also QAbstractSlider, QSpinBox, QDoubleSpinBox, QDateTimeEdit, and Spin Boxes Example.
Copyright © 2007 Trolltech | Trademarks | Qt Jambi 4.3.2_01 |