David Boddie schrieb:
import basicdrawing_rc

Note that you need to have this module to be able to show the image used
by the example. It is created by running pyrcc4 in the basicdrawing
directory like this:

  pyrcc4 -o basicdrawing_rc.py basicdrawing.qrc

This causes all the resources declared in the basicdrawing.qrc file (it's
just XML) to be written to a Python source file that can be imported.

Here's what might be causing the image not to appear. If, for some reason,
the basicdrawing_rc.py file was created without the image data, this will
fail, leaving you with a null pixmap.
I understand, but my Programm does not have any resource files. And it appears correctly, why?
Is it because of my special solution ?
So when do i need the resource file and what is the advantage of
the resource file?
How can i create <basicdrawing_rc.py> file?(qmake)
 > Does this make things any clearer?
Yes :-)

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to