Hi,

Am 31/07/2015 um 14:07 schrieb Ingmar Wegner:
Hi,
I know this is an evergreen topic. And I know that QmitkStdMultiWidget is an old class but with mighty features that I would like to control.
> ...
-> But I can't set the layout to show a 2D widget on the left side and a 3D widget on the right side. I see that the linked_render_window_part is the QmitkStdMultiWidgetEditor but as this is a plugin class I can not include, cast, and access it! I can only reach the interface methods of ILinkedRenderWindowPart and IRenderWindowPart, so enable and disable decorations and such. If I could reach it I could call GetStdMutliwidget and reach heaven (QmitkStdMultiWidget).

You actually can if you really must. A a link dependency from your plugin to the org.mitk.gui.qt.stdmultiwidgeteditor plugin by adding ts symbolic name to the "Require-Plugin" CMake variable in its manifest_headers.cmake file. You can then include the header file and dynamic_cast the interface.

Best,

Sascha

What I also tried was to control the widget via the QmitkRenderWindowMenu (the icons in the upper right corner of the widget) as the QmitkRenderWindow holds it as a member but there is no apropriate public method.
Is there a way to switch the layout from code?
Or do I have to modify the mitk class? If so, what would be the best strategy for it so I could contribute the changes if they are of interest?
Best Regards,
Ingmar
I saw the following user list threads:
http://article.gmane.org/gmane.comp.lib.mitk.user/3843/match=qmitkstdmultiwidget+layout
http://article.gmane.org/gmane.comp.lib.mitk.user/698/match=qmitkstdmultiwidget+layout

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to