[PyQt] Re: PyQt4/Qt 4.3 question

Phil Thompson phil at riverbankcomputing.co.uk
Wed Jun 6 14:37:37 BST 2007


On Wednesday 06 June 2007 2:23 pm, Detlev Offenbach wrote:
> Hi,
>
> in Qt 4.3 the method for setting the margins of a QLayout seem to have
> changed from setMargin() to setContentsMargins(). That is not supported by
> pyuic4 (see my previous post). Is there a way to generate forms with
> pyuic4, that work with Qt 4.2 and Qt 4.3 (e.g. by using the old setMargin()
> method). If not that would mean, eric4 4.1 would require Qt 4.3.

When I fix the bug I'll do it so that it behaves the same way as uic - 
whatever that is.

If this means that the generated code isn't backwards compatible then you 
could either load the .ui files on the fly, or run pyuic4 as part of the 
installation process. The latter would be the simplest change.

Phil


More information about the PyQt mailing list