I have a Qlable that I want to set a picture to. I want the picture to be embedded in the executable. I am using Creator to build this app. I think I might be creating the resource file incorrectly. From my searching to do what I want, the steps are:
1. Create a .qrc file with the files you want included.
2. Reference your .qrc file in the .pro file
3. then you should be able to access the files and they will be embedded.

So I created a .qrc file. I used notepad and indicated the file and saved it as graphics.qrc
Qt Code:
  1. <RCC>
  2. <qresource>
  3. <file> MainPic.jpg </file>
  4. </qresource>
  5. </RCC>
To copy to clipboard, switch view to plain text mode 
The picture is in the same folder as the graphics.qrc file
Then in my .pro file I added
RESOURCES = graphics.qrc

When I build I get an error: [debug/qrc_mxtrainer.cpp] Error 1

What am I doing wrong?