QString str = "1234.56"; double val = str.toDouble(); // val == 1234.56
double valueAsDouble = 1.2; QString valueAsString = QString::number(valueAsDouble);