<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Verdana">Hi all,</font></font><br>
<br>
<font size="-1"><font face="Verdana">While looking at failing tests
on Qt5, it seems that QgsJSONUtils test is failing due to a
regression on Qt 5.5.</font></font><br>
<font size="-1"><font face="Verdana">Conversion from QVariant to
QString is broken for double and float values [0].<br>
It seems to have been fixed in Qt 5.7<br>
<br>
Especially QgsJSONUtils.encodeValue(5.9) returns
'5.9000000000000004'.<br>
<br>
What would you suggest?<br>
<br>
* Don't care and discard failing test with Qt 5.5 - 5.6? (is
this really an issue?)<br>
* Use a custom toString method to fix this?<br>
* Bump min Qt version to 5.7?<br>
* ....?<br>
<br>
Cheers,<br>
Denis<br>
<br>
<br>
[0] <a class="moz-txt-link-freetext" href="https://bugreports.qt.io/browse/QTBUG-47192">https://bugreports.qt.io/browse/QTBUG-47192</a><br>
</font></font>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</body>
</html>