Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Difference between QString::number() & QString::setNum()?

$
0
0
Hi, I want to convert a double variable to a QString. I want to have a very strict control over the precision & accuracy. A faster method would be convenient. I have found these 2 functions : QString::number() & QString::setNum(). Both perform the conversion from double to a QString with user defined precision & formatting. So I wanted to know what is the difference between these 2 methods. There must be some difference that is why they have provided these 2 functions, right? Thank You.

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>