Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QLineEdit - Indicate if user enters an Invalid Value...

$
0
0
Hi… I have a QLineEdit in which the user can enter only an Integer. I used a QRegExpression validator instead of QIntValidator for the integer. Because the user can enter any value which can be out of range. But I want to introduce another validator to highlight if the user enters a value which is out of specified range. Like if the value is within the range, the font color should be in green otherwise red. Please suggest me. Thanks and Regards.

Viewing all articles
Browse latest Browse all 18427

Trending Articles