[PyKDE] Writing Qt Designer Plugins in Python

Phil Thompson phil at riverbankcomputing.co.uk
Sun Feb 18 12:53:11 GMT 2007


On Sunday 18 February 2007 12:23 pm, Hans-Peter Jansen wrote:
> 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..

Qt4 handles it as part of the model/view stuff. I don't think it has the same 
issues as Qt3.

Phil




More information about the PyQt mailing list