Conversation
5b8ca58 to
c4f7e40
Compare
|
Strange build test error: Features2d_FLANN_Auto.regression : Test passed on my local Windows desktop and my updates didn't touch any code from the feature2d module. |
|
Ignore: #9179 |
alalek
left a comment
There was a problem hiding this comment.
Please take a look on comments below.
c4f7e40 to
6743e8d
Compare
cmake/OpenCVFindLibsGUI.cmake
Outdated
| find_package(Qt${QT_VERSION_MAJOR} COMPONENTS OpenGLWidgets QUIET) | ||
| if(NOT Qt${QT_VERSION_MAJOR}OpenGLWidgets_FOUND) | ||
| message(STATUS "Qt OpenGLWidgets component not found: turning off openGL") | ||
| set(WITH_OPENGL FALSE) # Alternatively set(WITH_QT FALSE) |
There was a problem hiding this comment.
WITH_OPENGL
It is global option for all OpenCV modules.
WITH_ variables should NOT be changed by detection scripts (its meaning - try to run auto-detection script for related feature).
We use HAVE_ variables to specify that mentioned feature is available and enabled.
Perhaps we should run set(QT_QTOPENGL_FOUND OFF) here.
This variable is used in this script only to enable HAVE_QT_OPENGL below.
modules/highgui/src/window_QT.h
Outdated
| public: | ||
| explicit OpenGlViewPort(QWidget* parent); | ||
|
|
||
| // Note: #define CV_OVERIDE = override (#include < opencv2/core/cvdef.h >) |
There was a problem hiding this comment.
Perhaps we don't need this note really.
modules/highgui/src/window_QT.cpp
Outdated
| { | ||
| icvmouseEvent((QMouseEvent *)evnt, mouse_wheel); | ||
| QGLWidget::wheelEvent(evnt); | ||
| QWidget::wheelEvent(evnt); |
There was a problem hiding this comment.
Rescoped from QWidget to OpenCVQtWidgetBase
6743e8d to
5fa3b88
Compare
alalek
left a comment
There was a problem hiding this comment.
Thank you for update!
Looks good to me 👍
cmake/OpenCVFindLibsGUI.cmake
Outdated
| if(QT_VERSION_MAJOR GREATER 5) # QGL -> QOpenGL | ||
| find_package(Qt${QT_VERSION_MAJOR} COMPONENTS OpenGLWidgets QUIET) | ||
| if(NOT Qt${QT_VERSION_MAJOR}OpenGLWidgets_FOUND) | ||
| message(STATUS "Qt OpenGLWidgets component not found: turning off Qt openGL functionality") |
- QGLWidget changed to QOpenGLWidget in window_QT.h for Qt6 using typedef OpenCVQtWidgetBase for handling Qt version - Implement Qt6/OpenGL functionality in window_QT.cpp - Swap QGLWidget:: function calls for OpenCVQtWidgetBase:: function calls - QGLWidget::updateGL deprecated, swap to QOpenGLWidget::update for Qt6 - Add preprocessor definition to detect Qt6 -- HAVE_QT6 - Add OpenGLWidgets to qdeps list in highgui CMakeLists.txt - find_package CMake command added for locating Qt module OpenGLWidgets - Added check that Qt6::OpenGLWidgets component is found. Shut off Qt-openGL functionality if not found.
5fa3b88 to
b2005cc
Compare
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.