Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.5.0
-
None
-
Ubuntu SMP Fri Jul 24 21:17:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Description
#include <QApplication>
#include <QQmlApplicationEngine>
#include <QCoreApplication>
#include <QFile>
#include <QDataStream>
#include <QDebug>
#include <QStringList>
int main(int argc, char *argv[])
{ QCoreApplication a(argc, argv); QVariant v(3.3); // The variant now contains an double qDebug() << v.toString() << endl; return a.exec(); }Qt 5.4 out "3.3"
Qt 5.5 out "3.2999999999999998"
Attachments
Issue Links
- is replaced by
-
QTBUG-42574 QVariant doesn't properly convert floats and doubles stored within it to QString.
- Closed