From 631f2298274f8e53749a8b3e73725368e7f8d58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BD=A9=E5=85=B6?= Date: Sat, 7 Oct 2023 11:18:32 +0800 Subject: [PATCH] Fix the issue of missing imshow icons when linking OpenCV as a static library (https://github.com/opencv/opencv-python/issues/585) --- modules/highgui/src/window_QT.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/highgui/src/window_QT.cpp b/modules/highgui/src/window_QT.cpp index ecf8b61df019..56c51d2a02b1 100644 --- a/modules/highgui/src/window_QT.cpp +++ b/modules/highgui/src/window_QT.cpp @@ -1675,6 +1675,7 @@ CvWinProperties::~CvWinProperties() CvWindow::CvWindow(QString name, int arg2) { + Q_INIT_RESOURCE(window_QT); type = type_CvWindow; param_flags = arg2 & 0x0000000F;