Cannot open resource file

后端 未结 3 679
囚心锁ツ
囚心锁ツ 2021-01-17 23:03

Here is my code:

QFile test(\"://needle.png\"); // also tried :/needle.png :\\needle.png :\\\\needle.png

if(test.open(QFile::ReadOnly)) {
    qDebug() <&         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-17 23:59

    I removed the project.user.pro file, reopened QT. And it chose the kit and rebuilt. Working now.

提交回复
热议问题