Qt World Summit: Submit your Presentation

About qlineedit and integer validator for cellular numbers

  • Morning everyone:

    I've almost finished my app. And I'm still having a little problem. In my app, I put a QLineEdit to capture cellular phones numbers, and here these have a 10 o even 12 characters, I don't use mask to captures such numbers and decided to use IntValidator, but i have a Problem. When I reach a number of 9 numerical characters the capture stops, and I remain without capturing just one character.

    How could I solve this?

    For short, I need capture a 12 characters phone number by using IntValidator. (How I coudl use this property?)

    Thanks a lot.

  • You probably want to look at QRegExpValidator, instead.

Log in to reply