PDA

View Full Version : Polishing Custom Designer Widget



SixDegrees
15th April 2010, 01:32
I've successfully implemented a plugin that allows me to use my custom widget in Designer, and all seems to be well with it. However, I'm confused over what to do next. The designer plugin lives in the proper directory, but what should I do in order to ship the widget itself without all the cruft needed by the plugin? Do I just build it into a dynamic library, and ship that along with the header file? Do I need the small header Qt suggests that redefines whether we are importing or exporting symbols? And is there a way to bundle all this into a single project file, so I can keep my source code all in one place and say, for instance, 'make plugin' or 'make library'?

If anyone can point me to examples of how to flesh this out, I'd appreciate it.

I'm working in a Linux environment.