mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
Update window_QT.cpp
fix tab arrow issue
This commit is contained in:
parent
6079e22523
commit
7cd4fc2fb8
@ -2544,6 +2544,10 @@ DefaultViewPort::DefaultViewPort(CvWindow* arg, int arg2) : QGraphicsView(arg),
|
||||
|
||||
setInteractive(false);
|
||||
setMouseTracking(true); //receive mouse event everytime
|
||||
|
||||
// #13657 Tab key disables arrow keys
|
||||
// #20215 QT backend: cv::waitKey() and cv::waitKeyEx() do not capture arrow keys once you click on the image or press TAB
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user