[Ctk-developers] Get QWidgets from plugins

Florian Ganglberger Florian.Ganglberger at student.i-med.ac.at
Tue Jul 16 15:07:30 EDT 2013


Hi all,
thanks for you help last time! Currently we have a new problem in our
group. We are developing a framework for Image Guided Surgery. We have
a main app which should load all components (Dicom loading, image
registration, navigation, tracking) as plugins, so we can reuse or
exchange them later. The loading works fine, also the communication
between the plugins. Unfortunately there is one problem: We have the
GUI as QWidgets in every plugin class and we want that the main class
loads a QWidget when the plugins are initialized. We have registered
the QWidgets as services (within the plugins), but so far we get only
segmentation faults after we received them in the main app (it seems
the services are not really made for exchanging GUI elements...).

Du you have any suggestions how to solve this problem? Is there a
better solution for loading the gui dynamically?

Thank you for your help!

Best regards,
Florian



More information about the Ctk-developers mailing list