I\'m trying to understand an example in PyQt4 (simpletreemodel.pyw) I see the code
import simpletreemodel_rc
But I can\'t see where the mod
What you see is the byte-by-byte dump of the resources the .qrc
file contains. You don't explicitly access the objects inside the module. Just import it, and you will be able to access those resources by their original names(and paths) but preceded by a colon.
pixmap = QPixMap(':/images/filename.jpg')
UPDATE: QRC file is an XML file that looks like below:
<RCC>
<qresource prefix="/images">
<file alias='filename.jpg'>images/filename.jpg</file>
</qresource>
</RCC>
Then to generate it, use:
pyrcc4 -o images_rc.py images.qrc