Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
8f33e89d
Commit
8f33e89d
authored
Jul 28, 2010
by
Yannick Verdie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on OpenGL for Windows
parent
7ce53ada
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
CMakeLists.txt
CMakeLists.txt
+2
-1
window_QT.cpp
modules/highgui/src/window_QT.cpp
+5
-0
No files found.
CMakeLists.txt
View file @
8f33e89d
...
@@ -519,7 +519,8 @@ if (WITH_QT)
...
@@ -519,7 +519,8 @@ if (WITH_QT)
add_definitions
(
-DHAVE_QT
)
#We need to define te macro this way, using cvconfig.h.cmake does not work
add_definitions
(
-DHAVE_QT
)
#We need to define te macro this way, using cvconfig.h.cmake does not work
find_package
(
OpenGL QUIET
)
find_package
(
OpenGL QUIET
)
if
(
NOT WIN32
)
#WIN32 always detect OpenGL, so I disabled it.
#if (NOT WIN32) #WIN32 always detect OpenGL, so I disabled it.
if
(
OPENGL_INCLUDE_DIR
)
if
(
QT_QTOPENGL_FOUND AND OPENGL_FOUND
)
if
(
QT_QTOPENGL_FOUND AND OPENGL_FOUND
)
set
(
HAVE_QT_OPENGL 1
)
set
(
HAVE_QT_OPENGL 1
)
add_definitions
(
-DHAVE_QT_OPENGL
)
add_definitions
(
-DHAVE_QT_OPENGL
)
...
...
modules/highgui/src/window_QT.cpp
View file @
8f33e89d
...
@@ -690,6 +690,9 @@ void GuiReceiver::isLastWindow()
...
@@ -690,6 +690,9 @@ void GuiReceiver::isLastWindow()
GuiReceiver
::~
GuiReceiver
()
GuiReceiver
::~
GuiReceiver
()
{
{
if
(
global_control_panel
)
delete
global_control_panel
;
delete
timer
;
delete
timer
;
}
}
...
@@ -1394,6 +1397,8 @@ CvWindow::CvWindow(QString arg, int arg2)
...
@@ -1394,6 +1397,8 @@ CvWindow::CvWindow(QString arg, int arg2)
CvWindow
::~
CvWindow
()
CvWindow
::~
CvWindow
()
{
{
printf
(
"delete w
\n
"
);
QLayoutItem
*
child
;
QLayoutItem
*
child
;
if
(
myGlobalLayout
)
if
(
myGlobalLayout
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment