Hi, I'm developing on MITK application, I'm modifying Example Step8.

I need to call some actions on interface without using mouse but from my
thread.

I found how to do some of my task! :)

If I override some QmitkRenderWindow method and call them, I can interact
with the qt interface! I was able to move and press the cursor, move the
wheel and reset the interface.


Now I can't:

1) resize the image.
I was able to resize the image by overriding and calling resizeMitkEvent.
But it works only if I called before changeLayoutToWidget1(); on
my QmitkStdMultiWidget. Otherwise it doesn't work! Why???? What can I
do???? I need to resize the image in the default layout.

2) move the image! I tried by overriding mousePressEvent() and calling it
in this way:

QPoint point_move(50, 50);
QMouseEvent move_event(QEvent::MouseButtonPress, point_move,
Qt::MiddleButton, QFlags<Qt::MouseButton>(Qt::MiddleButton ||
Qt::MiddleButton ), QFlags<Qt::KeyboardModifier>(Qt::NoModifier ||
Qt::NoModifier));
  render_window->myMouseMoveEvent(&move_event);

But it doesn't work!

3) change the contrast of the image

How can I do?
Please tell me if I have to explain me better!

Thanks in advance! :)

Bye
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to