[PyKDE] Writing Qt Designer Plugins in Python

Phil Thompson phil at riverbankcomputing.co.uk
Sat Feb 17 10:48:15 GMT 2007


Thanks to work done by David Boddie, the current PyQt4 snapshot (and SIP as 
well) allows you to write custom widget plugins for Qt Designer using Python.

Python custom widgets behave exactly the same as C++ ones. You can connect 
signals and slots, and update properties. GUIs containing them can be 
previewed and pyuic4 generates the right code.

The documentation has been updated, and there is a simple, fully commented 
example.

The core changes mean that any QObject sub-class implemented in Python can 
define new Qt signals, slots and properties. This should also be useful for 
other plugin based applications.

Phil




More information about the PyQt mailing list