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;">&quot;<span style="font-weight: 600;">&#39;QVariant&#39; object has no attribute &#39;toFloat&#39;</span>&quot;</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(&quot;total&quot;).toFloat()<br><br>Where &quot;total&quot; 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>