Hi JY Bian,

What exactly did you do? Did you create your own widget or did you use the 
recommended QmitkStdMultiWidget?
In order to interact with the mouse a DisplayActionEventHandler has to be used. 
 It should be connected to a DisplayActionEventBroadcast, which will receive 
and forward mouse interactions.
You can see how the DisplayActionEventBroadcast is initialized for the 
QmitkStdMultiWidget inside its abstract base class:
QmitkAbstractMultiWidget::Impl:: InitializeDisplayActionEventHandling

Inside QmitkStdMultiWidget::InitializeMultiWidget you can see how the 
DisplayActionEventHandlerStd is used as a DisplayActionEventHandler for the 
Std-case.

You need to do this if you have a custom multi widget that does not inherit 
QmitkAbstractMultiWidget.

Best,

Amir

Von: JY Bian <bjy...@gmail.com>
Gesendet: Wednesday, 24 August, 2022 07:29
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] (no subject)

  Hi, Im new to MITK, heres my question:
Following tutorial on https://docs.mitk.org/, specificly 'The MITK 
Tutorial-Step8: Use QmitkStdMultiWidget as widget', Ihave already create a 
widget with four windows for my project. But I cannot interact with the image I 
display in the window as the software MITKWorkbench does, such as rotating my 
view in 3D window with pressing and moving my mouse, or move crossline after 
mouseclick somewhere at 2D window. I wonder how I can start mouse interaction  
with QmitkStdMultiWidgets.
Btw, I didnt see that part on the tutorial, "Part II Setup standard interaction 
with the mouse" has nothing in it.
Plz tell me if I have missed something, thank you so much.
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to