源码实现
static QString getSaveFileName(QWidget *parent = Q_NULLPTR,
const QString &caption = QString(),
const QString &dir = QString(),
const QString &filter = QString(),
QString *selectedFilter = Q_NULLPTR,
Options options = Options())
着重说一下第caption,后续的操作弹出框的的标题。
dir为文件保存文件的路径,注意,windows路径的“ \”要转换成"/",不然识别不了,如下: