Limits for Edit box
-
Hi Sir,
The given data must be in limits of +-30 only.If other than that number that should be invalid.Please help me..vry urgent required -
Try "QIntValidator":https://qt-project.org/doc/qt-5-snapshot/qintvalidator.html#details
-
hi sir..
I dt get the anwser .Please help me
-
Hi,
Go to the documentation page linked by andreyc, it shows what class to use and how to use it to limit you number input from -30 to + 30. However you can also use a "QSpinBox":http://doc.qt.io/qt-5/qspinbox.html
-
Hi sir,
can i use Text edit box for displaying range value without spin box .. -
Do you mean QLineEdit ? Then yes and use the QIntValidator like andreyc suggested. Or you can also hide the two arrows from the QSpinBox