Hi guys,<br><br>When i try to convert a QVariant.toFloat() it says
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;">"<span style="font-weight: 600;">'QVariant' object has no attribute 'toFloat'</span>"</p><br>Should work according to <a href="http://qt.nokia.com/doc/4.6/qvariant.html#toFloat">http://qt.nokia.com/doc/4.6/qvariant.html#toFloat</a><br>
<br>Is this not implemented in PyQt 4.6.2? (using Qt4.6.0)<br>Or i am doing something wrong?<br><br>In where i am trying to do this:<br><br>total = query.record().value("total").toFloat()<br><br>Where "total" entry in DB (mysql) is decimal(10,2). <br>
<br>Cheers.<br><br>-- <br>Gustavo A. Díaz<br>GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a><br>