I make a QWidget object in which there are some lineEdits and I intend to add some constraints to them, so I implement QDoubleValidator objects. Following is the related part in my code.
self.lineEdit_taxRate= QLineEdit()
self.lineEdit_taxRate.setValidator(QDoubleValidator(0.0, 100.0, 6))
But when I run the program, I find out I can still input number like 123165.15641. It seems the validator makes no difference.
I wonder if which step I missed or the validator will trigger some signal.
The lineEdit