I have the code below. I am using Qt_5_0_2_MSVC2012_64bit-Release. I am not able to read the file. I get the debug error message of \"Cannot open file for reading\".There is som
test.pro
:
TEMPLATE = app
TARGET = test
INCLUDEPATH += .
# Input
SOURCES += main.cpp
RESOURCES += test.qrc
test.qrc
:
MyFiles/myfile.txt
main.cpp
is from your question. Works fine.
That said, if you still have the problem, you should post minimal Qt project (including .pro and .qrc files), that has the error.