我的文档
QString location = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
桌面
QString location = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
Qt 程序获取程序所在路径、用户目录路径、临时文件夹等特殊路径的方法
本文介绍了使用Qt库如何获取程序的安装路径、用户的个人文档目录以及系统的临时文件夹路径,提供了详细的代码示例。
我的文档
QString location = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
桌面
QString location = QStandardPaths::writableLocation(QStandardPaths::DesktopLocation);
Qt 程序获取程序所在路径、用户目录路径、临时文件夹等特殊路径的方法
1132
1460

被折叠的 条评论
为什么被折叠?