Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.7.0
-
None
Description
When there are two QVariants with QStringList inside, comparison operators doesn't work as expected.
A simple example:
QStringList l1, l2; l1 << ""; l2 << "33" << "434"; QVariant v1(l1), v2(l2); const bool vl = v1 < v2; const bool vg = v1 > v2; const bool veq = v1 == v2;
Whatever is placed to l1 and l2, result always says v1 > v2 (vg is true, others are false).
5.6.2 ("") ("33", "434") > ("33", "434") ("") > ("33", "434") ("33", "434") ==
See "Core: QDebug and comparison operator support metatypes." 49d984b48c815ac27300ad49c1125501e3e6623c https://codereview.qt-project.org/#/c/51590/
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-54893 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
165886,11 | Fixed Bug in QVariant comparison when containing QStringLists | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |