Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

qt qstring to float

QString str1 = "1234.56";
double val = str1.toFloat();             // val == 1234.56
Source by doc.qt.io #
 
PREVIOUS NEXT
Tagged: #qt #qstring #float
ADD COMMENT
Topic
Name
9+4 =