[PyQt] QValidator.validate encore

Phil Thompson phil at riverbankcomputing.com
Sat Sep 29 09:49:27 BST 2012


On Fri, 28 Sep 2012 16:27:52 -0700, David Cortesi <davecortesi at gmail.com>
wrote:
> I have set up a QValidator whose validate method consists of:
> 
>     def validate(self, qs, pos) :
>         return (QValidator.Acceptable, qs, pos)
> 
> and this still gets TypeError: invalid result type from
> findRepValidator.validate()
> 
> Very puzzling.

The API is different for different versions of the QString API.

Phil


More information about the PyQt mailing list