[PyQt] QGraphicsPixmapItem not showing set pixmap

David Boddie david at boddie.org.uk
Sat Jan 30 17:45:52 GMT 2010


On Fri, 29 Jan 2010 07:00:13 -0800 (PST), dizou wrote:

> I made a Icons.qrc file. I am now doing this:
>
> pyrcc4 -py2 Icons.qrc -o IconsCompiled
>
> What should the extension IconsCompiled be? How would I import that file to
> my PyQt program?

It's a Python module, so call it IconsCompiled.py or Icons_rc.py. Just import
it into your program with

  import IconsCompiled

or

  import Icons_rc

depending on what you called the file.

David


More information about the PyQt mailing list