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

List:       pykde
Subject:    Re: [PyQt] pyqt 4.11 compile error (vs 4.10.4) seems a bug?
From:       Scott Kitterman <debian () kitterman ! com>
Date:       2014-06-18 10:25:11
Message-ID: a5693f0b-7906-4f99-9202-1313a67a73d3 () email ! android ! com
[Download RAW message or body]

On June 18, 2014 2:08:01 AM EDT, Phil Thompson <phil@riverbankcomputing.com> wrote:
>On 18/06/2014 4:21 am, Scott Kitterman wrote:
>> On Tuesday, June 17, 2014 13:01:09 Phil Thompson wrote:
>>> On 17/06/2014 11:28 am, Richard Duivenvoorde wrote:
>>> > Hi,
>>> >
>>> > QGIS is a qt application, using pyqt for addition functionality
>(see
>>> > qgis.org).
>>> >
>>> > Since two days (I think update in Debian (I'm on testing)) I have
>Pyqt
>>> > 4.11. Before it was 4.10.4
>>> >
>>> > If I compile the console_settings.ui file attached to this bug
>report:
>>> > http://hub.qgis.org/issues/10610
>>> >
>>> > to me it looks like the generated python is wrong.
>>> >
>>> > for given tableWidget 4.10.4 generated:
>>> > ...
>>> >
>>> >          self.tableWidget.setGridStyle(QtCore.Qt.SolidLine)
>>> >          self.tableWidget.setRowCount(0)
>>> >          self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
>>> >          self.tableWidget.setColumnCount(2)
>>> >
>>> > ...
>>> > Which is ok: two columns.
>>> >
>>> > But 4.11 generates:
>>> > ...
>>> >
>>> >          self.tableWidget.setGridStyle(QtCore.Qt.SolidLine)
>>> >          self.tableWidget.setRowCount(0)
>>> >          self.tableWidget.setObjectName(_fromUtf8("tableWidget"))
>>> >          self.tableWidget.setRowCount(0)
>>> >
>>> > ...
>>> > Which (I think) is wrong.
>>> > No columncount anymore, and two(!) times the same line
>>> > self.tableWidget.setRowCount(0)
>>> >
>>> > Can this be a bug? Or is it a problem in the ui file (as said,
>attached
>>> > on the qgis issue)
>>> >
>>> > Thanks for any information you can give us.
>>> 
>>> It will be fixed in tonight's PyQt4 and PyQt5 snapshots.
>> 
>> Would you mind posting the patches for this to the list?  I didn't
>get 
>> home in
>> time to get yesterday's snapshot to diff against and I'd like to 
>> cherrypick
>> these fixes into Debian.
>
>Attached. It should apply to both PyQt4 and PyQt5.

Thanks,

Scott K

_______________________________________________
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