PDA

View Full Version : current path



worm_wang
14th June 2018, 04:50
hi, i've build my project in disk E,and when i get my current path,it shows that my path is in disk C!!! How can i change the path same with build path?12865

Lesiok
14th June 2018, 11:56
If you want the current directory to be a directory with an EXE file, the best solution is to place this line in main()

QDir::setCurrent(QCoreApplication::applicationDirP ath());