PDA

View Full Version : multiple exported interfaces in one plugin - how to?



QPlace
13th November 2009, 17:05
It is stated in the documentation for Q_EXPORT_PLUGIN2 macro:
There should be exactly one occurrence of this macro in the source code for a Qt plugin.
My questions are:
1. Is it possible to export more then one class in a single plugin?
2. If yes then how it should be done?

Thanks.

wysota
14th November 2009, 19:20
You can export a plugin that will be an interface to more than one class. QDesignerCustomWidgetCollectionInterface is an example of such approach.