hi...
I've problems with validate some values of lineEdit.
I was reading about one way to lineEdith only accept Strings or doubles or ints, but in the file .ui, like a "manual" form.
hi...
I've problems with validate some values of lineEdit.
I was reading about one way to lineEdith only accept Strings or doubles or ints, but in the file .ui, like a "manual" form.
See QLineEdit::setValidator(...).
You will need a QValidator object for this. Qt already provides validators for int, double and regular expressions. The regular expression has, of course, to be defined yourself.
Bookmarks