PythonQt.QtGui.QAbstractSpinBox · declarations 003
Back to PythonQt.QtGui.QAbstractSpinBox
wrapping
instance-attribute
wrapping: bool
Qt 5 reference:
wrapping : bool
This property holds whether the spin box is circular.
If wrapping is true stepping up from maximum() value will take you to the minimum() value and vice versa. Wrapping only make sense if you have minimum() and maximum() values set.
QSpinBox *spinBox = new QSpinBox(this);
spinBox->setRange(0, 100);
spinBox->setWrapping(true);
spinBox->setValue(100);
spinBox->stepBy(1);
// value is 0
Access functions:
| bool | wrapping() const |
|---|---|
| void | setWrapping(bool w) |
See also QSpinBox::minimum() and QSpinBox::maximum().
Source: https://doc.qt.io/archives/qt-5.15/qabstractspinbox.html#wrapping