Published
- 1 min read
qt qstring to float
The solution for this is noted below
qt qstring to float
Solution
QString str1 = "1234.56";
double val = str1.toFloat(); // val == 1234.56
Try other methods by searching on the site. That is if this doesn’t work