Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.2.1
-
None
-
qt-opensource-windows-x86-mingw48_opengl-5.2.1.exe
-
849604e2f98296ddcde4f1e323e2383ef4f0dd49
Description
Strange behavior:
main.cpp
#include <QDebug> #include <QUuid> #include <QVariant> int main() { QUuid u1 = QUuid(); QVariant v1 = u1; QUuid u2 = u1; QString s2 = u2.toString(); QVariant v2 = s2; qDebug() << (v1 == v2); // true qDebug() << (v2 == v1); // false return 0; }
Attachments
For Gerrit Dashboard: QTBUG-42254 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
98660,1 | Fix asymmetry in QVariant::cmp when A converts to B but not the opposite | 5.4 | qt/qtbase | Status: ABANDONED | -1 | 0 |
100068,2 | Fix asymmetry in QVariant::cmp when A converts to B but not the opposite | dev | qt/qtbase | Status: MERGED | +2 | 0 |