[PyQt] Can i use Qt's codec plugin?

Phil Thompson phil at riverbankcomputing.co.uk
Tue Dec 4 09:43:06 GMT 2007


On Tuesday 04 December 2007, DDGG wrote:
> Hello friends!
> I want load a Qt's codec plugin at the runtime of my PyQt application.
> There are three lines in my source file:
>
> plugin = QtCore.QPluginLoader("C:/Qt/4.3.1/plugins/codecs/qcncodecs4.dll")
> print plugin.load()           # result is false, why?

Probably because it's a static build.

> print plugin.errorString()  # application crashed at this time!
>
> What should i do?

Compile PyQt yourself.

> Thanks!
>
> (PyQt: PyQt-Py2.5-gpl-4.3.1-1.exe,  Qt: qt-win-opensource-4.3.1-mingw.exe)

Phil


More information about the PyQt mailing list