From e858a13a5f983374584ae6f64496ffd5ea1420ab Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Sun, 21 Dec 2025 20:04:32 -0600 Subject: [PATCH] Gui: Add explicit find_package for Qt6::GuiPrivate --- src/Gui/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Gui/CMakeLists.txt b/src/Gui/CMakeLists.txt index 4a1ec8a1c4..c256a0f40b 100644 --- a/src/Gui/CMakeLists.txt +++ b/src/Gui/CMakeLists.txt @@ -130,7 +130,12 @@ else() endif() if (WIN32) + # In order to make menus and tooltips usable in fullscreen under Windows we need to call setHasBorderInFullScreen(), + # defined in Qt's private Gui code. See issue #7563, and the calls to QNativeInterface::Private in MainWindow.cpp if(FREECAD_QT_MAJOR_VERSION EQUAL 6) + if(Qt6_VERSION VERSION_GREATER_EQUAL "6.10.0") + find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) + endif() list(APPEND FreeCADGui_LIBS Qt6::GuiPrivate )