I've been developing a plugin-based application that has the main executable and several widget plugins (QWidgetPlugin) for additional functionality. Everything works fine. The problem is that during the development of plugins, I would like to simply unload the old version of the widget plugin and reload the new .so (in linux) or .dll (in windows). I do this by making the createWidget call in QWidgetFactory which uses the plugin files to create the widget.

Unfortunately, if I re-compile a new version of a plugin and make a new call to createWidget from QWidgetFactory, I still get a pointer to the older version of the widget and not the new one. Is there anyway to do this in Qt. This would save lots of development time for us because we would not need to constantly restart our main application (which is tedious and time-consuming in our case).

Regards,
Victor