你确定qrc文件加入pro了吗? 确定参与编译了吗? 我测试的是可以的阿。
QLabel* label = new QLabel("Test", this);
label->setPixmap(QPixmap(":/images/pic.png"));
-------------
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/">
<file>images/pic.png</file>
</qresource>
</RCC>
-----------------
pro
RESOURCES += resource.qrc