[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] PyQt4.uic.loadUi fail to load QTableWidget containing
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2010-04-29 9:40:06
Message-ID: 308d307feedc87beb0271ac2dc8967c1 () localhost
[Download RAW message or body]

On Wed, 28 Apr 2010 17:53:58 +0200, Yann Cointepas <yann@sapetnioc.org>
wrote:
> With PyQt 4.7.2 (Qt 4.6.2, sip 4.10), it is not possible to load the
> attached ui file. The problem happens whenever a value is inserted in a
> QTableWidget with designer. It used to work with PyQt 4.3.3.

Silly typo - fix attached.

Thanks,
Phil
[Attachment #3 (text/plain)]

diff -r 24210f941584 pyuic/uic/uiparser.py
--- a/pyuic/uic/uiparser.py	Sun Apr 25 22:55:03 2010 +0100
+++ b/pyuic/uic/uiparser.py	Thu Apr 29 10:38:40 2010 +0100
@@ -557,7 +557,7 @@
                 col = int(elem.attrib["column"])
 
                 if text:
-                    w.item(row, col).setText(text)
+                    item.setText(text)
 
                 if icon:
                     item.setIcon(icon)


_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic