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.
Q_INIT_RESOURCE
in main, directly after creating the QApplication
(I tried different places too, such as directly before accessing it etc.)QDirIterator
to list all resource, but no matter what I add to the file, it won't appearI 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
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.