[PyKDE] Writing Qt Designer Plugins in Python

Hans-Peter Jansen hpj at urpla.net
Sun Feb 18 12:23:41 GMT 2007


Am Samstag, 17. Februar 2007 schrieb Phil Thompson:
> 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.

Wow, these are exceptionally good news. Congrats to you both!

> 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.

Does this mean, that you support the Qt property system now, which would be 
very useful for database aware widgets (as long as Qt4's QSqlPropertyMap 
stuff is somewhat similar to Qt3's).. Now that would be enough a reason for 
me to finally leap jump..

Pete




More information about the PyQt mailing list