Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
4.6.2
-
None
Description
Hi,
QSpinBox is displaying the value, if the input value is lower then the minimum range.
sample code is given here.
#include <QtGui> #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); QSpinBox *integerSpinBox = new QSpinBox; integerSpinBox->setRange(3, 8); integerSpinBox->setSingleStep(1); integerSpinBox->setFixedHeight(30); integerSpinBox->setFixedWidth(100); integerSpinBox->setValue(5); integerSpinBox->showMaximized(); return a.exec(); }
Steps to generate the defect.
Place the code and run, i have set the minimum range of spinbox as 3 and maximum as 8. If i press the number from keyboard less then 3 it takes and displays over the spin-box but if i give the value greater then the maximum value it doesn't display over spin-box.
Expected result:
QSpinbox should not display the value lower then the minimum range of value, as it behaves good for the values greater then the maximum range.