[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] How can i load the codec plugin dynamically?
From:       DDGG <ddcatgg () gmail ! com>
Date:       2007-11-30 18:52:45
Message-ID: c14bf5270711301052p2208a9d3sdde85e1e8ab25d22 () mail ! gmail ! com
[Download RAW message or body]

Hello friends!
I want load a codec plugin at the runtime of my application, because
it could not load automatically by PyQt itself.
I add three lines in my source file, but it failed.

plugin = QtCore.QPluginLoader("C:/Qt/4.3.1/plugins/codecs/qcncodecs4.dll")
print plugin.load()       # result is false, why?
print plugin.errorString()  # application crashed in this time!

I needs your help, thanks a lot!
(mine: PyQt: PyQt-Py2.5-gpl-4.3.1-1.exe,  Qt: qt-win-opensource-4.3.1-mingw.exe)
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic