Re: Add QSvgWidget to Layout
You could make the mainwindow public to the shared library and at the widget from there but I doubt that this is what you had in mind.
Next trick: Get the mainwindow in the shared library by QApplication::topLevelWidgets
This would also work the other way around to find the widget.
But all of these are hacks so I wonder what you realy want to do. You can have a look at other frameworks that do similar:
KDE's ioslaves
Qt's widget plugins.
Re: Add QSvgWidget to Layout
Thanks for the suggestions. I will try those out and see if they will do the job.