PDA

View Full Version : number enter in lineEdit.



sabbu
2nd June 2011, 11:05
sir,
i have a LineEdite i want to enter only Mobile number,not character please help me how to take (0 to 9)only in LineEdite.My code is below.
QString str;
str=ui->lineEdit->text();

wysota
2nd June 2011, 11:15
Set a validator or an input mask.