Run designer, open its "About Plugins" dialog box and see what is the error associated with the plugin.
Run designer, open its "About Plugins" dialog box and see what is the error associated with the plugin.
Hello,
Earlier this plugin had installed at /usr/local/Trolltech/QtopiaCore-4.3.5/plugins/designer which I later realised is not the path designer expects the plugins to be in since it was not loacting it.
So I copied the plugins to
/usr/lib/qt4/plugins/designer
When I run the designer I get this error
QLibrary:: load_sys : Cannot load /usr/lib/qt4/plugins/designer/libmywidgetplugin.so(/usr/lib/qt4/plugins/designer/libmywidgetplugin.so: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent)
I have attached my source files for the plugin. mywidget.zip
thanks,
raman
This widget uses a symbol (QWidget::qwsEvent) which is not available in Qt. You have to compile it without that symbol if you want to run the widget in the desktop version of Qt.
I removed the event code this time from my source files .I have attached the updated code.I still get the same error :
QLibrary:: load_sys : Cannot load /usr/lib/qt4/plugins/designer/libmywidgetplugin.so(/usr/lib/qt4/plugins/designer/libmywidgetplugin.so: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent)
thanks,
raman
Obviously you still reference that symbol somewhere.
I have commented out all the events....I checked again in the code....
Is there anything else I need to do?
thanks,
raman
Your plugin loads fine for me but I don't see the widget in my widget box. You're missing the Q_OBJECT macro, I think.
I had actually removed the event code and object macro as well to test whether it loads at all without any errors.
I guess there is something wrong with my designer because the plugin doesn't even load at my end.
Can you please try loading the plugin from this attached code at your end?This is the original code.
Last edited by raman_31181; 15th September 2008 at 07:22.
thanks,
raman
Can anyone please help me with this.....I have been stuck for quite sometime now
thanks,
raman
Your plugin works fine for me. You must have some library mismatch. Try cleaning the whole project or use ldd to check if the plugin depends on appropriate versions of libraries.
Bookmarks