The QValidator class provides validation of input text.
I'm trying to apply validator in a line edit box in Qt 4.2 and it is not working: QDoubleValidator *haha= new …