1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

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.
This commit is contained in:
Pavel Rojtberg
2016-10-27 16:22:42 +02:00
parent 8333ea41e2
commit 358ec04413
6 changed files with 37 additions and 1 deletions
+8
View File
@@ -153,6 +153,14 @@ CV_IMPL double cvGetWindowProperty(const char* name, int prop_id)
#endif
break;
case CV_WND_PROP_VISIBLE:
#if defined (HAVE_QT)
return cvGetPropVisible_QT(name);
#else
return -1;
#endif
break;
default:
return -1;
}