On Thursday 14 April 2011 22:51:02 Myles Jackson wrote:
> 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 :-).

This was fixed in the following commit:

https://qt.gitorious.org/pyside/shiboken/commit/cf84217af1211b94a73bd60e8d1d5b7607b47d49

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

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to