반응형

Qt에서 현재 경로를 얻어 오고자 할 경우 사용

1
2
3
4
5
6
7
8
9
10
#include <QCoreApplication>
 
int main (void)
{
    QString sModulePath = QCoreApplication::applicationDirPath();
    sModulePath += "\\test.tmp";
    //ex) D:/test\test.tmp
 
    return 0;
}


반응형

+ Recent posts