Quote Originally Posted by RSX View Post
The second problem is that:
Qt Code:
  1. QValidator *validator = new QIntValidator(this);
  2. ui->lineEditFlags->setValidator(validator);
To copy to clipboard, switch view to plain text mode 

It works fine until my program sets text to something like 1 048 576 (something that has whitespace). Then I can enter any character I want =/
you can also set a QLineEdit::inputMask.