[PyQt] Fix: layoutStretch property is not compiled by pyuic4

luper rouch luper.rouch at gmail.com
Thu Jan 28 01:01:19 GMT 2010


The layoutStretch property of QHBoxLayout and QVBoxLayout in designer
should be compiled to layout.setStretch() calls.

The code to do this is already present in PyQt4.uic.uiparser, but
never triggered because of an error in the types hierarchies defined
in PyQt4.uic.Compiler.qtproxies (QHBoxLayout and QVBoxLayout should be
descendants of QBoxLayout instead of QLayout).

Attached is a patch (made against
PyQt-x11-gpl-4.7.1-snapshot-20100120.tar.gz) and a .ui file showing
the issue.

-- 
Lup
-------------- next part --------------
A non-text attachment was scrubbed...
Name: layoutStretch_example.ui
Type: application/x-designer
Size: 773 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100128/5ac21c9d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyuic-layoutStretch.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100128/5ac21c9d/attachment-0001.bin>


More information about the PyQt mailing list