[PyKDE] PyQt4 changes

Phil Thompson phil at riverbankcomputing.co.uk
Fri Dec 9 17:36:30 GMT 2005

On Friday 09 December 2005 4:23 pm, Peter Clark wrote:
>     On the subject of porting QT4 examples, is there some information
> somewhere on the changes from PyQt3->4?

There will be some documentation at some point. In the meantime...

99% of the changes are Qt differences.

PyQt4 consists of the following modules: QtCore, QtGui, QtNetwork, QtOpenGL, 
QtSql and QtXml. Expect to see more once Qt 4.1 is released. The modules are 
part of a Python package called PyQt4.

QObject.emit() now takes a variable number of arguments (the signal followed 
by the optional signal arguments) rather than the signal and a tuple of 
signal arguments.

PYSIGNAL is no more. Use SIGNAL instead.

Names that clash with Python keywords now have a '_' appended rather than 
being given a (supposedly) more descriptive name. So exec_loop(), 
execStatement() etc. all become exec_().

I think that's it.


More information about the PyQt mailing list