Skip to content
Snippets Groups Projects
Commit 7ea5cafd authored by Xiaowei Li's avatar Xiaowei Li
Browse files

chore: update documents

parent 4dc51078
No related merge requests found
## Add EnableTouchEventProcessing flag to QVTKOpenGL*Widgets & QVTKOpenGLWindow
As Qt touch event will automatically be translated to mouse event, so the mouse event will be processed twice for one touch in VTK interactor.
So for some native vtk widgets, such as vtkDistanceWidget, it designed behavior is broken on Qt6 platform. (By wrong use of QTouchEvent::TouchPoint::id(), the touch event is not processed accidentally with Qt5).
With this new flag for QVTKOpenGL*Widget/QVTKOpenGLWindow, you can switch on/off the Qt touch event processing by purpose.
......@@ -146,9 +146,7 @@ public:
/**
* Enable or disable support for touch event processing. When enabled, this widget
* will process Qt::TouchBegin/TouchUpdate/TouchEnd event, otherwise, these events
* will be ignored. For some vtk widgets like vtkDistanceWidget, if this option is
* enabled, it will received leftButtonPressed/leftButtonRelease twice for one touch,
* this breaks its designed logics. Default is true.
* will be ignored. Default is true.
*/
void setEnableTouchEventProcessing(bool enable);
bool enableTouchEventProcesing() const { return this->EnableTouchEventProcessing; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment