How to make lineEdit acceptable only integers?
Unsolved
General and Desktop
-
Welcome, how can I validate QLineEdit objects which could only accept int numbers? Objects are added via Qt designer tool.
-
Hi
You can use
http://doc.qt.io/qt-5/qintvalidator.html#details -
Hi,
depending on your needs an input-mask may help. This can be set inside designer. Look for Input-mask in the Documentation of QLineEdit.