c++qtstatic-librariesqt-resource

Q_INIT_RESOURCE not working


Im developing a static library, and I use a qrc file. I read the documentation and found, that I have to call Q_INIT_RESOURCE to make it work, but no success so far.

I don't now whats going wrong here. If code is requested, I can post some, but except of calling Q_INIT_RESOURCE and creating a QFile with the resource, there is nothing special about it


Solution

  • I figured it out myself. I'm actually using two libraries, and one used the same name for it's resource file. That won't work. I solved the problem by changing the name of my ressource.