Gui: Add explicit find_package for Qt6::GuiPrivate

This commit is contained in:
Chris Hennes
2025-12-21 20:04:32 -06:00
committed by Kacper Donat
parent 2292316f22
commit e858a13a5f

View File

@@ -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
)