On Thursday 14 April 2011 20:12:14 Myles Jackson wrote: > Hey Guys, > > I've noticed when trying to compare certain QtCore classes (QPoint, > QRect, QLine) that the == operator has not been implemented. > > Just wondering if this is intentional or an omission? > > >>> p = PySide.QtCore.QPoint() > >>> p == None > > Traceback (most recent call last): > File "<stdin>", line 1, in<module> > NotImplementedError: operator not implemented.
The implementation exists, but it's wrong :-/ By default when no overload is found Shiboken throws an Python error instead of just return false. It's a bug, but an easy one to solve :-). > > p.s. PySide rocks. > _______________________________________________ > PySide mailing list > [email protected] > http://lists.pyside.org/listinfo/pyside -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
