Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.8.2
-
None
Description
I have this short example to reproduce:
int main(int argc, char *argv[]) { QString value; qDebug() << value << value.isNull(); QVariant var = value; qDebug() << var << var.isNull(); return 0; }
When compiled with Qt 5.15.2, the result is:
"" true QVariant(QString, "") true
and with 6.8.2 it's:
"" true QVariant(QString, "") false
In other words, QString->QVariant conversion loses null/non-null information and it can be critical - it basically loses data.