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
480f8235
Commit
480f8235
authored
Jun 16, 2011
by
Ilya Lysenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fixed destroyAllWindow crash (patch #794)
parent
f010539a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
window_QT.cpp
modules/highgui/src/window_QT.cpp
+15
-6
No files found.
modules/highgui/src/window_QT.cpp
View file @
480f8235
...
...
@@ -988,16 +988,25 @@ void GuiReceiver::destroyAllWindow()
//#TODO check externalQAppExists and in case it does, close windows carefully,
// i.e. apply the className-check from below...
qApp
->
closeAllWindows
();
}
else
{
foreach
(
QObject
*
obj
,
QApplication
::
topLevelWidgets
())
}
else
{
bool
isWidgetDeleted
=
true
;
while
(
isWidgetDeleted
)
{
if
(
obj
->
metaObject
()
->
className
()
==
QString
(
"CvWindow"
))
isWidgetDeleted
=
false
;
QWidgetList
list
=
QApplication
::
topLevelWidgets
();
for
(
int
i
=
0
;
i
<
list
.
count
();
i
++
)
{
delete
obj
;
QObject
*
obj
=
list
.
at
(
i
);
if
(
obj
->
metaObject
()
->
className
()
==
QString
(
"CvWindow"
))
{
delete
obj
;
isWidgetDeleted
=
true
;
break
;
}
}
}
}
}
...
...
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