Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.11.1
Description
Unexpected behavior with QVariant == operator.
Like if we try to print the output of following code,
qDebug()<< (QVariant(false) == QVariant("")); --------> true
qDebug()<< (QVariant("") == QVariant(false)); ---------> false
Issues with this:
- QVariant operator is not checking the types of arguments being compared.
- The operator is not commutative.
Attachments
Issue Links
- duplicates
-
QTBUG-50979 QVariant equal compare not commutative
- Closed