If you are on Windows using MSVC as your compiler, and want to use Qt's resource system, you will need to add
Q_INIT_RESOURCE(res)
to the beginning of main()
, where res is the name of your .qrc file without the ".qrc".
To get a full view of this, look at this gist: