PyQt4 jpeg/jpg unsupported image format

前端 未结 2 1158
再見小時候
再見小時候 2020-12-10 16:58

I\'m trying to get QImage (or anything in PyQt4, for that matter) to load a jpg file in a script. I haven\'t been able to find any information on how to get it to load a jpg

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 17:32

    Just in case someone is searching for loading plugins, I've created an answer for a more proper question here to allow you basically put plugins in any network shared folder.

    In short, use QtCore.QCoreApplication.addLibraryPath() instead of qt.conf file.

提交回复
热议问题