From e98e3ffc1793b2bd7c9c9396b148e28896c08bac Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Thu, 7 May 2026 15:13:33 +0300 Subject: [PATCH] Fixed OpenCV World module build with QT 5. --- modules/world/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/world/CMakeLists.txt b/modules/world/CMakeLists.txt index 8c580ed1b2..256d5e3785 100644 --- a/modules/world/CMakeLists.txt +++ b/modules/world/CMakeLists.txt @@ -84,7 +84,7 @@ endif() ocv_target_compile_definitions(${the_module} PRIVATE OPENCV_MODULE_IS_PART_OF_WORLD=1) # NOTE: https://github.com/opencv/opencv/issues/25543 -if (WITH_QT) +if (WITH_QT AND QT_VERSION_MAJOR GREATER 5) qt_disable_unicode_defines(${the_module}) endif()