QString strFileName = QFileDialog::getSaveFileName(this, tr("保存文件"),".", tr("测点文件(*.csv)"));
if (strFileName.isEmpty())
{
return;
}
//针对linux处理, 若后缀为空自动添加.csv后缀
if (QFileInfo(strFileName).suffix().isEmpty())
{
strFileName += ".csv";
}