I wrote console Qt application. I'd like to copy file from directory, where is my exe file.
m_Path = QCoreApplication::applicationDirPath() + "\\g.aux.xml";
QFile::copy(m_Path,PathNew);
This code excellent works, when I debug my application. But when I copy my .exe file to another directory it does not work.
Please tell me, how fix it.
UPD: I think I found the answer I need to use QDir::currentPath()