I have a plugin that creates a toolbar using the cmake function paraview_plugin_add_toolbar(). Is there a way that other code in my plugin can access and call methods on the toolbar instance that gets created by paraview?
Qt has API to get access to the QMainWindow
instances in the application and then you can get access to QToolBar instances in each of those windows.
see pqCoreUtilities::findMainWindow
, pqCoreUtilities::mainWidget
for how to access the main window.
Gotcha, thanks.