Images not showing when running a frozen pyqt app on another computer

后端 未结 3 1549
囚心锁ツ
囚心锁ツ 2020-12-10 19:12

I have a PyQt4 program that I froze using cx_freeze. The problem I am having is when I make a QGraphicsPixmapItem, which it is getting its\' pixmap made from a SVG file, th

3条回答
  •  不知归路
    2020-12-10 20:04

    For people coming here from Google: if you only use QtWebKit, you do need to copy the imageformats dir (which you find in PYTHONDIR\lib\site-packages\PyQt4\plugins) into your app dir. Specifying PyQt4.QtWebKit among the includes is not enough.

提交回复
热议问题