PDA

View Full Version : how to install qt designer plugin?



tomkonikkara
8th August 2011, 09:29
Hi,
I was working out example of analog clock plugin (http://www.greyc.ensicaen.fr/ensicaen/Docs/Qt4/designer-worldtimeclockplugin.html) qtdir/qt/examples/designer/worldtimeclockplugin. Build succeeded and got output as "libworldclockplugin.so" in by Linux. What to do next to get this plugin listed in my QtDesigner?
Please reply

littletux
8th August 2011, 13:10
Hi,

you need to copy the library to a "designer" subdirectory of your plugin directory. Especially during development, you can also use the QT_PLUGIN_PATH environment variable to point to the plugin directory (but you still need the designer sub directory). See also http://doc.qt.nokia.com/latest/designer-creating-custom-widgets.html#building-and-installing-the-plugin.
The "Help/About plugins" menu is quite helpful when plugins are not recognized by QtDesigner, since it also lists missing library dependencies. Also take care that your LD_LIBRARY_PATH contains all directories where additional dependend libraries might be located.

Hope this helps,

Andreas