Thank you, good to know.
What is a best way to initialize a module’s widget when Slicer CAT is started?
For example I have a qSlicerStackLoadModule
and qSlicerStackLoadModuleWidget
classes. I can see that qSlicerStackLoadModule
is initialized when Slicer is launched. But the qSlicerStackLoadModuleWidget
is initialized when the module is manually chosen in Slicer’s module toolbar via function qSlicerStackLoadModule::createWidgetRepresentation()
.
I’m looking for a way to instantiate qSlicerStackLoadModuleWidget
when qSlicerStackLoadModule
is initialized (or more generally when the app is launched). I have tried some things but they either don’t work (Slicer stops launching) or have some lacks.