Merge pull request #24526 from thewoz:arrow

fix tab arrow issue
pull/24535/head
Alexander Smorkalov 1 year ago committed by GitHub
commit 4c7d77372e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      modules/highgui/src/window_QT.cpp

@ -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…
Cancel
Save