On Mittwoch, 6. Juni 2007, Phil Thompson wrote: > 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.
I just checked the result produced by uic and it generates code for both methods (although setMargin isn't documented anymore). > > 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. Detlev -- Detlev Offenbach [EMAIL PROTECTED] _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt