[PyQt] pyqt 4.11 compile error (vs 4.10.4) seems a bug?

Scott Kitterman debian at kitterman.com
Wed Jun 18 11:25:11 BST 2014


On June 18, 2014 2:08:01 AM EDT, Phil Thompson <phil at 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



More information about the PyQt mailing list