Pay attention to the alias
bit in your .qrc
file.
I prefer to set <qresource prefix="/">
to keep it simple.
<RCC>
<qresource prefix="/">
<file alias="about me">images/about_me.png</file>
<file alias="BSD License">otherfiles/LICENSE.txt</file>
...
</qresource>
</RCC>
This way you don't need to bother remembering the full path to use a resource
ui->action_New->setIcon(QIcon(":/about me"));
this->setWindowIcon(QIcon(":/about me"));
...
QFile lfile (":/BSD License");
if(lfile.open(QIODevice::ReadOnly){
...
}
Note: I'm not suggesting that using spaces in the aliases is a good or bad idea, but it certainly works.