[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] =?utf-8?q?PyQt_5=3A_Equality_operator_not_implemented_for_?=
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2014-06-25 15:29:28
Message-ID: 8e0c73153d87a770600475d888e9d095 () www ! riverbankcomputing ! com
[Download RAW message or body]
On 25/06/2014 3:57 pm, Arve Knudsen wrote:
> Hi guys
>
> Using PyQt 5.2.1, I've noticed that comparing two QStringListModels
> for equality always returns false, is there any reason for this?
> Example:
>
> from PyQt5 import QtCore
>
> model1 = QtCore.QStringListModel(['1', '2'])
> model2 = QtCore.QStringListModel(['1', '2'])
>
> print(model1 == model2) # Prints False
> # Corresponding QStringLists can be compared OTOH
> print(model1.stringList() == model2.stringList()) # Prints True
It's not supported by Qt.
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic