[PyQt] QPointF comparison is kinda wrong

Phil Thompson phil at riverbankcomputing.com
Tue Jun 30 12:12:03 BST 2015


On 30/06/2015 11:38 am, Arseniy Terekhin wrote:
> Windows 7, python 2.7.10, PYQT_VERSION_STR = '4.11.4'
> 
>>>> from PyQt4.QtCore import QPointF as p
>>>> p() < p()
> True
>>>> p() < p()
> False
>>>> p() < p()
> True
>>>> p() < p()
> False
>>>> p() < p()
> True
>>>> p() < p()
> False
>>>> p() < p()
> True
>>>> p() < p()
> False
>>>> p() < p()
> True

QPointF doesn't implement any comparison operators.

Phil


More information about the PyQt mailing list