Details
-
Bug
-
Resolution: Done
-
P2: Important
-
1.1.0
-
win7 64bit. Python 2.7 Pyside 1.1
-
6c0a0d70305cd6e12260a352099e74d34f3c239e, af7a0c68c (dev), 83445c3ae (6.8)
Description
If construct QtValidator with fixup method.
Then call using lineEdit. Fixup runs but returned value is not placed into lineEdit slot in UI.
E.g.
class Param_validate_value(QtGui.QValidator): def __init__(self, r_min, r_max): super(Param_validate_value, self).__init__() self.min = r_min self.max = r_max def validate(self, entry, cursor_pos): return QtGui.QValidator.Intermediate def fixup(self, entry): print "22" return "22"
Expected behaviour has 22 placed into slot when validator is triggered.
But value remains unchanged in lineEdit slot.