Here is my code:
QFile test(\"://needle.png\"); // also tried :/needle.png :\\needle.png :\\\\needle.png if(test.open(QFile::ReadOnly)) { qDebug() <&
I had exactly the same problem. Running qmake again finally worked (build -> run qmake).
Does the URL notation
QFile test("qrc:///needle.png");
work for you?
I removed the project.user.pro file, reopened QT. And it chose the kit and rebuilt. Working now.