如何使用QPixmap在PyQt4中加载jpeg格式图片?

时间:2012-10-06 03:40:50

标签: python pyqt4

我使用print QtGui.QImageReader.supportedImageFormats()但在输出中没有jpeg 我搜索了问题,发现我需要*.dylib中的plugins/imageformats

所以我把它移到py2.7/site-packages/PyQt4,但我仍然无法加载jpeg。

我使用的是python脚本,而不是py2exe,只是python test_pyqt.py

我现在该怎么办?

Mac os x Mountain Lion 10.8.2,Python 2.7,PyQt4

0 个答案:

没有答案
相关问题