http://blog.sina.com.cn/s/blog_44e6424c0100yrjr.html
打印当前目录代码如下,别忘了头文件
#include <QDir>
#include <QtDebug>
QString path = QDir ::currentPath ();
qDebug() << "currentPath:" << path;
http://blog.sina.com.cn/s/blog_44e6424c0100yrjr.html
打印当前目录代码如下,别忘了头文件
#include <QDir>
#include <QtDebug>
qDebug() << "currentPath:" << path;