[PyQt] PyQt4 and Qt 4.3 problem - compiled forms don't work

Detlev Offenbach detlev at die-offenbachs.de
Wed Jun 6 14:14:57 BST 2007


Hi,

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>
    ui.setupUi(Dialog)
  File "fail.py", line 18, in setupUi
    self.vboxlayout.setLeftMargin(6)
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.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fail.py
Type: application/x-python
Size: 2853 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070606/d0537107/fail.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fail.ui
Type: application/x-designer
Size: 2628 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20070606/d0537107/fail-0001.bin


More information about the PyQt mailing list