Difference in relative file path: debug mode and release mode of Qt Creator
QFile file("test.txt"); if (file.open(QIODevice::ReadOnly)) { qDebug()<<"You got me."; } I am using: Qt 4.8.6 with MSVC 2010 Qt Creator 3.1.1 Windows 7 (32 bit) From the above code, if .pro file has not been changed , the corresponding build directory for the debug mode : D:\...\build-Main-MSVC2010-Debug and the .exe of the debug mode will be located in D:\...\build-Main-MSVC2010-Debug\debug for the release mode : D:\...\build-Main-MSVC2010-Release and the .exe of the release mode will be located in D:\...\build-Main-MSVC2010-Release\release [Question] If I want the release program to read the