How to restrict a QSpinBox with following restrictions
Unsolved
Mobile and Embedded
-
Hi
You can use
http://doc.qt.io/qt-5/qspinbox.html#validate
to check if input is "legal" -
- It should not take 01,002.. It should take 0 or 1 or 2 i.e 0 should not be prefixed with natural numbers.
- It should not take 00000000000000000000000000000000
-
Hi,
What is the problem with you users entering such a big number of zeros ?