[PyQt] Need help using QWebPluginFactory

Detlev Offenbach detlev at die-offenbachs.de
Mon Feb 20 14:37:36 GMT 2012


I am having a bit of trouble using QWebPluginFactory.Plugin. I want to attach 
a MimeType object to it's mimeTypes list, but the list stays empty (s. below). 
What am I doing wrong?

Python 3.2.2 (default, Oct 23 2011, 17:46:58) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtWebKit import QWebPluginFactory
>>> p=QWebPluginFactory.Plugin()
>>> p
<PyQt4.QtWebKit.Plugin object at 0xa2bd00>
>>> p.mimeTypes
>>> mt=QWebPluginFactory.MimeType
>>> p.mimeTypes.append(mt)
>>> p.mimeTypes

Detlev Offenbach
detlev at die-offenbachs.de

More information about the PyQt mailing list