QDoubleValidator do not accept the range
I'm using PyQt5, trying to set validation to the input line. First of all, QDoubleValidator do not accept the set range from 0.0 to 99.9, I was trying this:
double_validator = QDoubleValidator(0.0, 99.9, 2)
self.ui.modulationAmplitudeInput.setValidator(double_validator)
The result is that I can easily input the nuber like 1111111.00, but I wanted maximum 99.99. Than I also tried to add limit like this:
double_validator = QDoubleValidator(0.0, 99.9, 2)
double_validator.setTop(99.99)
self.ui.modulationAmplitudeInput.setValidator(double_validator)
Unfortunately, nothing changed. I will be happy if someone can help me!