Have you forgot to add init rc progma?
here

Q_INIT_RESOURCE(appname)
before line that resource are using.