<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">The API is different for different versions of the QString API.<br>
Phil<br></blockquote><div><br>Sorry, I'm using Python 2.7 and PyQt4 (4.8.3).<br><br>Looking around the Riverbank docs starting at the top level I find this link:<br><br>   <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/python_v3.html#qvalidator">http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/python_v3.html#qvalidator</a><br>

<br>which seems to imply that the validate() -> (State, QString, int) API is new for Python 3.<br><br>However I cannot find any other doc for QValidator except this link:<br><br>   <a href="http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qvalidator.html">http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qvalidator.html</a><br>

<br>which also gives the ->(State, QString, int) return value.<br><br>Using a google search 'site:<a href="http://riverbankcomputing.co.uk">riverbankcomputing.co.uk</a> QValidator' doesn't turn up anything else relevant that I see.<br>

<br>I'd appreciate a link to a 4.8-specific API doc if that is what I need.<br><br>Thanks for your time,<br><br>Dave Cortesi<br></div>