Ok, thanks Guys.<br><br><div class="gmail_quote">2010/1/13 Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, 13 Jan 2010 17:56:57 -0300, Gustavo A. Díaz<br>
<<a href="mailto:gustavo.diaz@gmail.com">gustavo.diaz@gmail.com</a>> wrote:<br>
> Hi guys,<br>
><br>
> When i try to convert a QVariant.toFloat() it says<br>
><br>
> "'QVariant' object has no attribute 'toFloat'"<br>
><br>
> Should work according to<br>
<a href="http://qt.nokia.com/doc/4.6/qvariant.html#toFloat" target="_blank">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>
<br>
</div>No - it will be in PyQt 4.7.<br>
<div><div></div><div class="h5"><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>
</div></div><font color="#888888">Phil<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Gustavo A. Díaz<br>GDNet Projects<br><a href="http://www.gdnet.com.ar">www.gdnet.com.ar</a><br>