[PyQt] comparing two QItemSelection always return False?
flc at freemail.hu
Wed Jun 30 19:35:02 BST 2010
What's the proper way to compare two QItemSelection instances? It seems
that using the == operation always returns False.
Comparing their indexes() can do the job but it seems a bit redundant.
The attached code tries to demonstrate the problem. Make any selection
in the view and check the result of the three prints.
The first one will always return False, while the second and third one
will always return True.
Am I doing something wrong?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the PyQt