[PyQt] Can't load custom python plugins in qt4 designer
dboddie at trolltech.com
Tue Jun 2 13:50:05 BST 2009
On Tue Jun 2 08:20:38 BST 2009, Michael Thompson wrote:
> 2009/5/30 David Boddie <david at boddie.org.uk>
> > On Thu, 28 May 2009 13:49:22 +0100, Michael Thompson wrote:
> > > I'm trying to load a custom plugin in designer, on Ubuntu jaunty.
> > >
> > > I have tried running qtdemo from the python-qt4-doc package but the
> > > plugins do not appear in designer.
> > Do you mean that you tried running the plugins.py example from the
> > examples/designer/plugins directory?
> yes I'm running
> python plugins.py
OK, I've just tried this, and it's one of those annoying cases where it works
for me, but not for you. :-/
> > > If I use the About->Plugins menu in designer I
> > > can see a libpythonplugin.so folder but no entries underneath it.
> > >
> > > Any idea how I can debug this further?
> > Can you run the examples/designer/plugins/plugins.py PyQt example and let
> > us know if the plugins appear?
> plugins don't appear
> > Can you tell us where you have installed your plugins?
> I'm running from the examples directory without installing the plugins
Yes, I tried that, too, and it just worked, so I'm wondering if something
is misconfigured somehow. Just for comparison, I have installed these
packages for PyQt4 and Qt Designer:
python-qt4 4.4.4-2ubuntu6 Python bindings for Qt4
python-qt4-common 4.4.4-2ubuntu6 Shared files for PyQt4
python-qt4-doc 4.4.4-2ubuntu6 Documentation and examples for PyQt4
qt4-designer 4.5.0-0ubuntu4.1 graphical designer for Qt 4 applications
I've also tried using both Python 2.5 and 2.6, and both worked.
Is there anything unusual about your Ubuntu installation?
Senior Technical Writer
Nokia, Qt Software
More information about the PyQt