[PyQt] Strange observation with latest stable releases
detlev
detlev at die-offenbachs.de
Mon Jul 26 18:19:31 BST 2010
On Sonntag, 25. Juli 2010, Phil Thompson wrote:
> On Sun, 25 Jul 2010 19:11:00 +0200, Antonio Valentino
>
> <antonio.valentino at tiscali.it> wrote:
> > Hi,
> >
> > Il giorno Sun, 25 Jul 2010 18:26:15 +0200
> >
> > detlev <detlev at 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 list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
The fix seems to work. Thanks Phil.
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the PyQt
mailing list