Patrick Whalen
b2005ccaef
Fix broken build for Qt6 with options: WITH_QT=ON and WITH_OPENGL=ON
...
- 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.
3 years ago
xhawk18
24f43e7ae9
Merge pull request #20183 from xhawk18:3.4
...
* improve compatibility for qt 6.
* cmake(highgui): rework Qt dependency support
* cmake(highgui): workaround Qt5Config.cmake "components" bug
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
3 years ago
Xinguang Bian
5627a0cbdf
fix scale problem in DefaultViewPort::controlImagePosition()
3 years ago
Alexander Alekhin
ef2b400c61
highgui: win32ui plugin
4 years ago
Alexander Alekhin
3d2f4fa164
highgui: fix trackbar value pointer handling
4 years ago
Alexander Alekhin
70f69cb265
highgui: backends and plugins
4 years ago
Alexander Alekhin
b6933dbf3a
highgui(pollKey): properly handle no-GUI case
4 years ago
Christoph Rackwitz
26da491053
implementation of pollKey, companion to waitKey
...
w32 backend: implemented
other backends: stubbed or fallback to waitKey
documentation: cross-linked and more precise in some places
4 years ago
Yuriy Obukh
edcc762f7a
add "Copy to clipboard functional" to imshow wnd with Qt
5 years ago
StefanBruens
f05d5888c9
Merge pull request #16479 from StefanBruens:fix_gles_glx_h_include
...
Fix compilation errors on GLES platforms
* Do not include glx.h when using GLES
GL/glx.h is included on all LINUX plattforms, which is wrong
for a number of reasons:
- GL_PERSPECTIVE_CORRECTION_HINT is defined in GL/gl.h, so we
want gl.h not glx.h, the latter just includes the former
- GL/gl.h is a Desktop GL header, and should not be included
on GLES plattforms
- GL/gl.h is already included via QtOpenGL ->
QtGui/qopengl.h on desktop plattforms
This fixes a problem when Qt is compiled with GLES, which
is often done on ARM platforms where desktop GL is not or
only poorly supported (e.g. slow due to emulation).
Fixes part of #9171 .
* Only set GL_PERSPECTIVE_CORRECTION_HINT when GL version defines it
GL_PERSPECTIVE_CORRECTION_HINT does not exist in GLES 2.0/3.x,
and has been deprecated in OpenGL 3.0 core profiles.
Fixes part of #9171 .
5 years ago
Alexander Alekhin
35edad3e74
build: fix warnings
6 years ago
Maksim Shabunin
db1c8b3f9e
Restored function to rescale pixel values before imshow
6 years ago
Pavel Rojtberg
f54b230906
highgui: Qt - restore convertscale semantics
...
broken in 11eafca3e2
6 years ago
Vadim Pisarevsky
11eafca3e2
removed C API in the following modules: photo, video, imgcodecs, videoio ( #13060 )
...
* removed C API in the following modules: photo, video, imgcodecs, videoio
* trying to fix various compile errors and warnings on Windows and Linux
* continue to fix compile errors and warnings
* continue to fix compile errors, warnings, as well as the test failures
* trying to resolve compile warnings on Android
* Update cap_dc1394_v2.cpp
fix warning from the new GCC
6 years ago
Alexander Alekhin
b059a361dd
highgui: drop obsolete Carbon API
...
https://en.wikipedia.org/wiki/Carbon_(API)
In 2012, with the release of OS X 10.8 Mountain Lion, most Carbon APIs were considered deprecated.
6 years ago
Maksim Shabunin
439072a2a6
Fixed two warnings produced by clang
7 years ago
Jan Gaura
eb3969e244
Better text contrast of pixel brightness values in Qt window
...
This offsets text brightness of pixel brightness values
by offsetting it by 127 to the curent pixel value.
The text is now readable even if pixels are black.
7 years ago
luz.paz
d05714995c
Misc. modules/ cont. pt2
...
Found via `codespell`
7 years ago
Gregory Morse
d84c7e5143
Merge pull request #10649 from GregoryMorse:patch-3
...
* Fix for QT image window rectangle
* Update window_QT.h
* Update window_QT.cpp
* trailing whitespace
* highgui: fix QT getWindowImageRect()
7 years ago
Gregory Morse
ec353dbdda
Merge pull request #10412 from GregoryMorse:patch-2
...
Update to add window position and size retrieval to HighGUI (#10412 )
* Update highgui.hpp
Add read only property retrieval for enhanced rendering capabilities and more sophisticated research tools
* Update window.cpp
* Update window_w32.cpp
* Update window_QT.cpp
* Update window_QT.h
* Update window_QT.h
* Update window_gtk.cpp
* Update precomp.hpp
* Update highgui_c.h
* Update highgui_c.h
* Update window_w32.cpp
* Update precomp.hpp
* Update window_QT.cpp
* Update window_QT.h
* Update window_gtk.cpp
* Update window_gtk.cpp
* Update window_w32.cpp
* Update window_QT.cpp
* Update window_carbon.cpp
* Update window_cocoa.mm
* Update precomp.hpp
* Update window_cocoa.mm
* Update window_w32.cpp
* Update window_gtk.cpp
* Update window_QT.cpp
* Update window_gtk.cpp
* Update window_QT.cpp
* Update window_cocoa.mm
* Update window_carbon.cpp
* Update window_w32.cpp
* Update window_cocoa.mm
* Update window_gtk.cpp
* Update window_cocoa.mm
* Update window_gtk.cpp
* Update window_cocoa.mm
* Update window_cocoa.mm
* Update window.cpp
* Update test_gui.cpp
* Update test_gui.cpp
* Update test_gui.cpp
* Update highgui_c.h
* Update highgui.hpp
* Update window.cpp
* Update highgui_c.h
* Update test_gui.cpp
* Update highgui.hpp
* Update window.cpp
* Update window.cpp
* Update window.cpp
* Update window.cpp
* Update window.cpp
7 years ago
Alexander Alekhin
3fd03964a3
fix code style
7 years ago
saskatchewancatch
cc17400849
i9403: Removing checks from trackbar min/max set functions.
...
Removing unnecessary range checks for QT backend support's setTrackbarMin and setTrackbarMax fucntions
Fixes
7 years ago
saskatchewancatch
33ba7867f6
Don't truncate label for tracknbar name (Qt)
...
Setting truncate option for QString leftJustified method to false fixes 10 character truncation issue noted in issue 9489
7 years ago
Dmitry Kurtaev
7123d9c376
Added 1ms delay to let system decorate Qt windows
7 years ago
Alexander Alekhin
602f047fe8
build: replace WIN32 => _WIN32
7 years ago
Pavel Rojtberg
358ec04413
highgui: add property WND_PROP_VISIBLE
...
checks whether the window exists and is visible. On QT closing a window
merley hides it, so the common hack for checking whether a window exists
exists = cv2.getWindowProperty(.., 0) >= 0
does not work.
8 years ago
Pavel Rojtberg
a37a6bd783
fix BGR <> RGB swap
...
we are drawing on a BGR image declared as RGB, so we should not swap
components here either.
8 years ago
Alexandr Kondratev
46bfdbaf82
highgui: window_QT mousecallback code refactored using DRY
8 years ago
Pavel Rojtberg
e4cf3297c7
highgui: allow specifying that a button should create a new buttonbar
8 years ago
Christian Kapeller
81e6ef2958
highgui: window QT+OpenGL mouse wheel support, another build fix
...
amends work done in pull request #6976 .
9 years ago
Alexandr Kondratev
d394d26b46
highgui: window QT+OpenGL mouse wheel support, build fix
9 years ago
Alexandr Kondratev
13aef2c0cf
highgui: window_QT mouse wheel support
9 years ago
Ilya Lavrenov
3bf16da92d
added condition for Qt5
9 years ago
Alexandr Kondratev
179998a8a2
highgui module: window_QT mouse wheel reuse variable delta instead call evnt->delta()
9 years ago
Alexandr Kondratev
6020dacc11
highgui module: implemented QT and GTK mouse wheel callback support in linux
9 years ago
Pavel Rojtberg
cfd498a8eb
fix compilation with qt
...
QSlider does not have getMinimum/Maximum getters. Probably was not
compile tested.
9 years ago
Aman Verma
b0209ad7f7
Fix for #5495 : add setTrackbarMin
9 years ago
Dominik Kleiser
f363670934
Bug #3800 - Resize viewport when CV_WINDOW_KEEPRATIO was set (Qt)
10 years ago
Luis Díaz Más
b599774e30
Fix a bug that impede to set the trackbar pos using the Qt control panel
...
Conflicts:
modules/highgui/src/window_QT.cpp
10 years ago
Luis Díaz Más
e6f7e96ff4
Fixing the bug #4244 that I just reported in code.opencv.org
10 years ago
Craig Reynolds
b4c7c011b7
In cvAddText, construct QString from "text" using fromUtf8.
10 years ago
Luis Díaz Más
7711cd284b
Fix a bug that impede to set the trackbar pos using the Qt control panel
10 years ago
Luis Díaz Más
d14a1de947
Fixing the bug #4244 that I just reported in code.opencv.org
10 years ago
StevenPuttemans
cef2cf2852
fixing locale settings - making it universal
10 years ago
Craig Reynolds
72d90ba8d2
In cvAddText, construct QString from "text" using fromUtf8.
10 years ago
Ashod Nakashian
63c49be487
highgui: Support to change trackbar count in setTrackbarPos and replaced deprecated CreateToolbarEx in Windows.
10 years ago
Ashod Nakashian
006384edaf
highgui: Support to change trackbar count in setTrackbarPos and replaced deprecated CreateToolbarEx in Windows.
10 years ago
Andrey Kamaev
f4ba8b13c7
Add cv::setWindowTitle to highgui
10 years ago
Daniel Stonier
d3ad26926d
fixed support for parallelised imshows with qt via the gui receiver.
10 years ago
Daniel Stonier
161f50962d
make sure children are included in the moveToThread
10 years ago