1. 程式人生 > >Qt 列印除錯資訊

Qt 列印除錯資訊

 列印當前目錄程式碼如下,別忘了標頭檔案

#include <QDir>

 #include<QtDebug>
 

QString path = QDir::currentPath();
 qDebug()<<"currentPath:"<<path;