QRegExp with QLineEdit
Mobile and Embedded
4
Posts
3
Posters
1.7k
Views
2
Watching
-
wrote on 6 May 2015, 14:28 last edited by
How can I insert in a QLineEdit digits and letters but first 2 character I want to letters and then 3 digits and again 2 letters
For eg: AA122BD ? -
How can I insert in a QLineEdit digits and letters but first 2 character I want to letters and then 3 digits and again 2 letters
For eg: AA122BD ?wrote on 6 May 2015, 14:35 last edited byThis post is deleted! -
Hi,
You can use the QRegExpValidator class. If you're on Qt 5 then please consider using QRegularExpression
3/4