Hi,
I want to take only a integer value from a QLineEdit (32 bit int).
Can I use a QRegExp?
Qt Code:
To copy to clipboard, switch view to plain text mode
Can someone help me?
nowire
Hi,
I want to take only a integer value from a QLineEdit (32 bit int).
Can I use a QRegExp?
Qt Code:
To copy to clipboard, switch view to plain text mode
Can someone help me?
nowire
Last edited by wysota; 25th October 2007 at 21:55. Reason: Changed [qtclass] to [code]
You could use QIntValidator but I'd recommend using QSpinBox which is basically a specialized QLineEdit for numerical input and does it right(tm) in international applications.
J-P Nurmi
nowire75 (25th October 2007)
Bookmarks