[Interest] QValidator fixup called after QDataWidgetMapper submit?
Stephen Chu
stephen at ju-ju.com
Wed Jul 25 03:02:30 CEST 2012
I am using QDataWidgetMapper for one of my property editors. Some of the
line edits have various QValidators set. I just find out that submit
slot is called before the validator has a change to fixup the text.
For example, a line edit with an QIntValidator that has a range of
[0,100]. When I enter 200 then hit tab, the model data is updated with
200 then the text in the edit gets fixed up to 100.
Now the UI says 100 but the actually data in the model is 200. Talk
about pulling my hairs and finally find this out. :)
Is there a way the make sure fixup is done first?
More information about the Interest
mailing list