Hi to all,
I migrated some weeks ago to Qt 5.5 ( from Qt 4.x ) and resources mechanism stopped working ( at least on my machine ).
Looking at the documentation, seems the same as per Qt 4, so I followed the same logic.

In my project structure I have a folder named Images containing some icons that I would add to a toolbar.

Here my simple resources.qrc file:

Qt Code:
  1. <RCC>
  2. <qresource prefix="/MyFiles">
  3. <file>Images/cut.png</file>
  4. <file>Images/bringtofront.png</file>
  5. <file>Images/colors.png</file>
  6. <file>Images/copy.png</file>
  7. <file>Images/delete.png</file>
  8. <file>Images/link.png</file>
  9. <file>Images/node.png</file>
  10. <file>Images/paste.png</file>
  11. <file>Images/sendtoback.png</file>
  12. </qresource>
  13. </RCC>
To copy to clipboard, switch view to plain text mode 

And here the c++ code that does not have any effect

Qt Code:
  1. addNodeAction = new QAction(tr("Add &Node"), this);
  2. addNodeAction->setIcon(QIcon(":/MyFiles/Images/node.png"));
  3. addNodeAction->setShortcut(tr("Ctrl+N"));
  4. connect(addNodeAction, SIGNAL(triggered()), this, SLOT(addNode()));
To copy to clipboard, switch view to plain text mode 

I tried many path combinations, none of them is working:
Qt Code:
  1. addNodeAction->setIcon(QIcon(":/Images/node.png"));
  2. addNodeAction->setIcon(QIcon("://MyFiles/Images/node.png"));
  3. addNodeAction->setIcon(QIcon(":/node.png"));
To copy to clipboard, switch view to plain text mode 


I hope to get some help

Regards