numeric digit test
-
hello
The number entered in the line edit,
what should I do to test that it is a number (for example : entered :1 , or , entered :5.7 , and so on) ,
can you help me
thanks.@Hayri You can use https://doc.qt.io/qt-6/qlineedit.html#setValidator
But better:- For integer numbers you should use https://doc.qt.io/qt-5/qspinbox.html
- For floating point numbers: https://doc.qt.io/qt-5/qdoublespinbox.html
-
@Hayri You can use https://doc.qt.io/qt-6/qlineedit.html#setValidator
But better:- For integer numbers you should use https://doc.qt.io/qt-5/qspinbox.html
- For floating point numbers: https://doc.qt.io/qt-5/qdoublespinbox.html