Well I already have a set of plugins for my custom widget set. I would like to figure out how to improve what I have to make the plugin simpler to build and install. There are other developers who work on this project and I want it to be simple to build and install the plugin(s). I have four related widgets that are all derived from the same base class (which is derived from a Qt class but with significant extensions). These widgets are highly specialized and are only useful for applications that do stuff related to creating ICC profiles.
These are all used in my app to do similar things but with different types of external resources (profiles and CGATS files) and with slightly different user presentations depending on the context. I would like to be able to create a single plugin library that has all four widgets in it. But so far I have not been able to get this to build as a single plugin that will also make all four widgets available. But there are some widget plugin libraries that come with Qt4 that have many widgets in a single library. One example is the Qt3 compatibility widget set. So I know it is possible to do but none of the examples I have found show how to do this (IE. they only export a single widget class).
I am sure that there is just something that I am not doing right but I do not know what that is. The basic problem is that it will not build if I have more than one Q_EXPORT_PLUGIN2 macro even if I separate the individual plugin implementations and header of the four widgets into individual files. This means that I can only have one custom widget per library file and that I must build and install each separately. What I would like is to have one project file that generates one Makefile that will correctly build and install all four widgets. Anyone have any ideas about how to do this?
By the way I have converted my ui files to designer 4 and I am still having the problem with the generated make file not running uic or moc.




Reply With Quote


Bookmarks