Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

bool QAbstractSpinBox::wrapping [read, write, inherited]

whether the spin box is circular.

If wrapping is true stepping up from maximum() value will take you to the minimum() value and vica 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

See also:
QSpinBox::minimum(), QSpinBox::maximum()

Definition at line 67 of file qabstractspinbox.h.


Generated by  Doxygen 1.6.0   Back to index