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

void QSpinBox::setRange ( int  minimum,
int  maximum 
)

Convenience function to set the minimum, and maximum values with a single function call.

doc/src/snippets/code/src.gui.widgets.qspinbox.cpp 2 is equivalent to: doc/src/snippets/code/src.gui.widgets.qspinbox.cpp 3

See also:
minimum maximum

Definition at line 434 of file qspinbox.cpp.

Referenced by Window::createControls(), Window::createDoubleSpinBoxes(), QtSpinBoxFactory::createEditor(), MainWindow::createIconSizeGroupBox(), and Window::createSpinBoxes().

{
    Q_D(QSpinBox);
    d->setRange(QVariant(minimum), QVariant(maximum));
}


Generated by  Doxygen 1.6.0   Back to index