From baf613bc5c0e9964bb2e743357064f605fe98b75 Mon Sep 17 00:00:00 2001 From: Rok Mandeljc Date: Wed, 2 Nov 2016 13:11:51 +0100 Subject: [PATCH] highgui: window_QT: added missing virtual method specifier Fixes #7603, which was caused by OCVViewPort::icvmouseProcessing not being declared as virtual, and hence was not overriden by DefaultViewPort::icvmouseProcessing (which does the inverse coordinate mapping). --- modules/highgui/src/window_QT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/window_QT.h b/modules/highgui/src/window_QT.h index 641dfebd81..b08d7133cf 100644 --- a/modules/highgui/src/window_QT.h +++ b/modules/highgui/src/window_QT.h @@ -414,7 +414,7 @@ public: protected: void icvmouseEvent(QMouseEvent* event, type_mouse_event category); void icvmouseHandler(QMouseEvent* event, type_mouse_event category, int& cv_event, int& flags); - void icvmouseProcessing(QPointF pt, int cv_event, int flags); + virtual void icvmouseProcessing(QPointF pt, int cv_event, int flags); CvMouseCallback mouseCallback; void* mouseData;