[PyQt] Re: PyQt4 and Qt 4.3 problem - compiled forms don't work
phil at riverbankcomputing.co.uk
Wed Jun 6 21:56:21 BST 2007
On Wednesday 06 June 2007 2:14 pm, Detlev Offenbach wrote:
> forms compiled with pyuic4 of latest PyQt4 snapshot don't work with Qt 4.3.
> Attached please find a test form, that shows the problem (generated Python
> code is included as well). Executing the Python file gives the error
> Traceback (most recent call last):
> File "fail.py", line 70, in <module>
> File "fail.py", line 18, in setupUi
> AttributeError: setLeftMargin
> QLayout just has a method called
> void QLayout::setContentsMargins ( int left, int top, int right, int bottom
> ) that sets all four margins in one go.
Should be fixed in tonight's snapshot.
I decided not to do what uic does after all. It will call setMargin() if it
can (ie. all the margins have the same value), otherwise it calls
More information about the PyQt