一、字符串到双精度浮点数
字符串-->double
成功 ok=true
失败 ok=flash
返回值:转换后的字符串
/*QString Class*/
#include <QString>
double QString::toDouble(bool *ok = nullptr) const
二、数值转字符
返回字符串
/*QString Class*/
#include <QString>
[static] QString QString::number(long n, int base = 10)
三、判空操作
//原型
bool QString::isEmpty() const
//调用
ui->m_editY->text().isEmpty())