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

后端 未结 3 1547
囚心锁ツ
囚心锁ツ 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 19:50

    I've added a hook to cx_freeze that includes imageformats whenever PyQt4.QtGui is included in the original code. With imageformats in the right place, even the externally stored icons work.

    https://bitbucket.org/anthony_tuininga/cx_freeze/pull-request/11/added-pyqt4qtgui-load-hook-that-adds/diff

提交回复
热议问题