#if 0
QString fileName = QFileDialog::getOpenFileName();//获取文件名
if (!fileName.isEmpty())//判断是否为空
{
if (!QDesktopServices::openUrl(QUrl::fromLocalFile(fileName)))//打开目标文件,可以是系统支持的任何格式;
{
qDebug()<<"open error";
}
else
{
qDebug()<<"open success";
}
}
#endif