Qt 6.11 is out! See what's new in the release
blog
Limits for Edit box
General and Desktop
6
Posts
3
Posters
1.6k
Views
1
Watching
-
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