Re: [PyQt] Strange observation with latest stable releases
On Sonntag, 25. Juli 2010, Phil Thompson wrote: On Sun, 25 Jul 2010 19:11:00 +0200, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi, Il giorno Sun, 25 Jul 2010 18:26:15 +0200 detlev det...@die-offenbachs.de ha scritto: Hi, in the past code like @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) def on_logTree_currentItemChanged(self, current, previous): used to work. Such a method got called, whenever the current item of the tree changed. However, with latest stable releases this is not the case anymore. If I remove the decorator line, everything is back at normal. What is going on here? Regards, Detlev Should be fixed in tonight's PyQt snapshot. I'm experimenting similar effects with @QtCore.pyqtSlot(QtCore.QModelIndex) @QtCore.pyqtSlot(QtCore.QModelIndex, int, int) @QtCore.pyqtSlot(QtGui.QListWidgetItem, QtGui.QListWidgetItem) @QtCore.pyqtSlot(QtGui.QGraphicsScene, QtCore.QPointF, QtCore.Qt.MouseButtons) I've still not investigated but by sure by sure after upgrading sip 4.10 -- 4.10.5 PyQt4 4.7 -- 4.7.4 the behavior is changed. The fix is for QListWidgetItem, QTableWidgetItem and QTreeWidgetItem. If there are still issues with other classes (eg. QModelIndex) then it's a different problem. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt The fix seems to work. Thanks Phil. Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Strange observation with latest stable releases
Hi, in the past code like @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) def on_logTree_currentItemChanged(self, current, previous): used to work. Such a method got called, whenever the current item of the tree changed. However, with latest stable releases this is not the case anymore. If I remove the decorator line, everything is back at normal. What is going on here? Regards, Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Strange observation with latest stable releases
Hi, Il giorno Sun, 25 Jul 2010 18:26:15 +0200 detlev det...@die-offenbachs.de ha scritto: Hi, in the past code like @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) def on_logTree_currentItemChanged(self, current, previous): used to work. Such a method got called, whenever the current item of the tree changed. However, with latest stable releases this is not the case anymore. If I remove the decorator line, everything is back at normal. What is going on here? Regards, Detlev I'm experimenting similar effects with @QtCore.pyqtSlot(QtCore.QModelIndex) @QtCore.pyqtSlot(QtCore.QModelIndex, int, int) @QtCore.pyqtSlot(QtGui.QListWidgetItem, QtGui.QListWidgetItem) @QtCore.pyqtSlot(QtGui.QGraphicsScene, QtCore.QPointF, QtCore.Qt.MouseButtons) I've still not investigated but by sure by sure after upgrading sip 4.10 -- 4.10.5 PyQt4 4.7 -- 4.7.4 the behavior is changed. Best regards -- Antonio Valentino ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Strange observation with latest stable releases
On Sun, 25 Jul 2010 19:11:00 +0200, Antonio Valentino antonio.valent...@tiscali.it wrote: Hi, Il giorno Sun, 25 Jul 2010 18:26:15 +0200 detlev det...@die-offenbachs.de ha scritto: Hi, in the past code like @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) def on_logTree_currentItemChanged(self, current, previous): used to work. Such a method got called, whenever the current item of the tree changed. However, with latest stable releases this is not the case anymore. If I remove the decorator line, everything is back at normal. What is going on here? Regards, Detlev Should be fixed in tonight's PyQt snapshot. I'm experimenting similar effects with @QtCore.pyqtSlot(QtCore.QModelIndex) @QtCore.pyqtSlot(QtCore.QModelIndex, int, int) @QtCore.pyqtSlot(QtGui.QListWidgetItem, QtGui.QListWidgetItem) @QtCore.pyqtSlot(QtGui.QGraphicsScene, QtCore.QPointF, QtCore.Qt.MouseButtons) I've still not investigated but by sure by sure after upgrading sip 4.10 -- 4.10.5 PyQt4 4.7 -- 4.7.4 the behavior is changed. The fix is for QListWidgetItem, QTableWidgetItem and QTreeWidgetItem. If there are still issues with other classes (eg. QModelIndex) then it's a different problem. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt