[Qt-interest] Convert a qreal to String

Donal O'Connor donaloconnor at gmail.com
Thu Jun 18 11:09:28 CEST 2009


A qreal is a typedef of double afaik.

qreal realVal = 23.32;
QString string = QString::number(realVal);

On Thu, Jun 18, 2009 at 10:07 AM, Sujan Dasmahapatra <sdh at lmglasfiber.com>wrote:

>  Friends
>
> Please someone tell me how to converts a *qreal  value*  to  *QString
> valueString*
>
>
>
> Kind regards,
> LM Glasfiber R&D (India) Pvt. Ltd.
>
> Sujan Dasmahapatra
> Project Engineer - CFD
>
> Telephone: +91 80 66470248
> Mobile:
> E-mail: sdh at lmglasfiber.com
>
>
>
>
>
>
>
>
>
> --------------------------------------------------------------
>
> This e-mail and any attachments are confidential. If you are not the named
> or intended recipient, please notify the sender immediately and do not
> disclose the contents to any other person, use it for any purpose or store
> or copy the information in any medium. Any unauthorized disclosure, use or
> storage is prohibited and might be unlawful.
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090618/d972aef5/attachment.html 


More information about the Qt-interest-old mailing list