QDir dir;
QString strPath = m_strFilePath;
if (!dir.exists(strPath))
dir.mkdir(strPath);
QDesktopServices::openUrl(QUrl::fromLocalFile(m_strFilePath));
qt 打开指定路径,路径不存在自动创建
最新推荐文章于 2024-06-28 16:38:07 发布
QDir dir;
QString strPath = m_strFilePath;
if (!dir.exists(strPath))
dir.mkdir(strPath);
QDesktopServices::openUrl(QUrl::fromLocalFile(m_strFilePath));