PDA

View Full Version : qreal -> QString conversion



MarkoSan
13th April 2008, 14:23
Hello again!

How do I convert a qreal number in QString represenation of it. For instace, i have a qreal with value 12.33 and from it I would like to make QString("12.33"). How do I do that?

wysota
13th April 2008, 14:26
QString::number()

Please.... please at least take a look at QString docs trying to match a method by name that would suggest an action similar to what you want to do before asking such questions...

MarkoSan
13th April 2008, 14:37
ups, sorry, I haven't slept much because of Model/View problems and I became a little tired and sloppy. :D