Here is my code:
QFile test("://needle.png"); // also tried :/needle.png :\needle.png :\\needle.png
if(test.open(QFile::ReadOnly)) {
qDebug() << "yay";
} else {
qDebug() << "fail";
}
I have this in my project file:
RESOURCES += Resources.qrc
Here is my QRC file:
<RCC>
<qresource prefix="/">
<file>needle.png</file>
</qresource>
</RCC>
I keep getting fail as output. Any ideas?