[PyKDE] QString and QValidator on Qt 4

Simon Edwards simon at simonzone.com
Tue Nov 21 21:55:11 GMT 2006


Hello,

I've come up against a problem in Qt 4 with QValidator and its fixup() method. 
This code working on Qt 3:

    def fixup(self,inputstr):
        return unicode(inputstr).replace(":","")

But it doesn't seem to work like this on PyQt 4. PyQt4's fixup() seems to 
require no return value. Is in-place modification of the QString argument 
expected??? or have a found a bug?

PyQt4 v4.0.1
Qt4 v4.2.0

cheers,

-- 
Simon Edwards             | KDE-NL, Guidance tools, Guarddog Firewall
simon at simonzone.com       | http://www.simonzone.com/software/
Nijmegen, The Netherlands | "ZooTV? You made the right choice."




More information about the PyQt mailing list