[PyQt] Re: Problem with latest PyQt4 snapshot

Phil Thompson phil at riverbankcomputing.com
Tue Sep 22 10:32:50 BST 2009

On Sat, 19 Sep 2009 19:47:00 +0200, Detlev Offenbach
<detlev at die-offenbachs.de> wrote:
> Hi Phil,
> pyuic4 of the latest snapshot is a bit buggy. It does wrap the value set
> via 
> QObject.setProperty(...) into a QVariant. That makes code generated with
> this 
> pyuic incompatible with older PyQt4 versions.

pyuic doesn't guarantee that it will generate code that will work with an
earlier version of PyQt that it is a part of. Otherwise it would be
difficult to introduce new features.

If you don't have control over the version of PyQt your users are using
then you should run pyuic as part of your installation process (or
dynamically load the .ui files).


More information about the PyQt mailing list