Answer the question
In order to leave comments, you need to log in
Restricting input to everything but float range from 0.0 to 1.0 in Line Edit - Python/PyQt4?
Good afternoon, please tell me how to limit the input in Line Edit to everything except the range of real numbers from 0.0 to 1.0
Initially, Line Edit is empty, only with a holder.
Purpose:only real numbers from 0.0 to 1.0 are entered in the program interface in Line Edit
I know that you can use QIntValidator for integers, but for floating point numbers?
Thank you. PyQt4, python 3.4.3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question