Hi to all,
I'd like to set a QLineEdit object to accept only ASCII chars without use inputMask because I should set a 'N' for 128 times(buffer lenght). Is there a simple way to do that?
Thanks.
Hi to all,
I'd like to set a QLineEdit object to accept only ASCII chars without use inputMask because I should set a 'N' for 128 times(buffer lenght). Is there a simple way to do that?
Thanks.
Use QRegExpValidator.
The 'N' validator character doesn't meet your requirement anyway. For example, it will not allow punctuation like comma, parentheses, semi-colon etc., which are clearly ASCII characters.
Thanks, I'll try QLineEdit->text().toASCII(); function.
Bookmarks