On 15/04/11 12:20, Hugo Parente Lima wrote:
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 :-).

Awesome. thanks again.

p.s. PySide rocks.
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to