double d=0.1;lineEdit->setText(QString::number(d, 'g', 5));
double d=0.0; char buf[BUFSIZ]; ::sprintf(buf, "%0.5f", d); lineEdit->setText(QString(buf));
C++ (Qt)qDebug() << QString::number(0.3, 'f', 5);