Have you tried creating the validator first with edit as the last
arguement instead of self:
validator = QDoubleValidator(0.0, 1.0, 9, edit)
edit.setValidator(validator)
Adam
On 7/13/07, Katja Wegner <[EMAIL PROTECTED]> wrote:
Hello,
I use PyQt 4.2.1 under Linux and 4.2.2 under Windwos. The
Q
Hello,
I use PyQt 4.2.1 under Linux and 4.2.2 under Windwos. The
QDoubleValidator does not work. I set a range of 0.0 to 1.0 but the user
can still enter what ever he wants in a QLineEdit and even negative
values. Did anybody experience the same or know how to solve it (except
writing my own)