1 QInputDialog获取值
n1 = 10;
n1= QInputDialog::getDouble( imageregion.parent, QString::fromLocal8Bit("请输入数值"),
QString::fromLocal8Bit("请输入取点间隔(参考值10"),10,0,50,1, &ok);
2 double 根据精度转为Qstring
//10 == 10进制 ,4 小数点个数
QString::number(intResult, 10, 4)