I have a Widget with a LineEdit in it. Input of LineEdit must be restrict special symbol. I used inputMask to do this work.
But, now I have trouble.
ui->lineEdit->setInputMask("N");
ui->lineEdit->setInputMask("N");
To copy to clipboard, switch view to plain text mode
The code above allow me to input only 1 character.
ui->lineEdit->setInputMask("NNN");
ui->lineEdit->setInputMask("NNN");
To copy to clipboard, switch view to plain text mode
The code above allow me to input only 3 character.
Assumming, the lineEdit allow user input maxlength = 1000, so I have do this:
ui->lineEdit->setInputMask("NNNNNNNNNNNNNNNNNN.......N (1000 times)");
ui->lineEdit->setInputMask("NNNNNNNNNNNNNNNNNN.......N (1000 times)");
To copy to clipboard, switch view to plain text mode
Very stupid. Is there another way to avoid that. How can I solve ????)
Bookmarks