Limits for Edit box
-
Try "QIntValidator":https://qt-project.org/doc/qt-5-snapshot/qintvalidator.html#details
-
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
-
Do you mean QLineEdit ? Then yes and use the QIntValidator like andreyc suggested. Or you can also hide the two arrows from the QSpinBox