[Qt-interest] Problem with designer plugins

Robert Wood robert.wood at apostrophe.co.uk
Fri Mar 5 23:32:21 CET 2010


 > I am having difficulties with custom widget designer plugins. I followed
 > the manual and created by own plugin, but even through it built fine it
 > never got installed and I couldn't use it by manually copying to
 > $QTDIR/qt/plugins/designer directory
 >
 > Anyway, I then thought well lets just compile the customwidgetplugin
 > example. Same problem. It builds just fine, but doesn't install and
 > can't be used as plugin to designer.
 >
 > I installed Qt using the Qt SDK for 32-bit linux and I am running on
 > Ubuntu 9.10 (GCC 4.4.1)
 >
 > So I am bit stuck. Has anyone else come across this problem?

I struggled for ages with this just last week on Mandriva. I was missing 
a couple of important steps.

You have copied the .so file to $QTDIR/qt/plugins/designer and then 
restarted designer? Don't forget the bit about restarting designer!

You should have libwidgetnameplugin.so in the 
$QTDIR/qt/plugins/designer where widgetname is the name of your custom 
widget.

Don't forget also, that you'll have to add the new lib name path to your 
.pro file and have the header file available for your program to compile!

Oh, the other thing to be sure is that designer is built with the same 
version as creator and you're not using an incorrect version of designer 
from your respoitory.

Good luck. This is really confusing at first!

Cheers,

Rob






More information about the Qt-interest-old mailing list