From ecbb3628317374cc6146e1c40a19c28f4c5933d7 Mon Sep 17 00:00:00 2001 From: Sami Varanka Date: Thu, 30 Oct 2025 09:48:56 +0200 Subject: [PATCH] Fix: GraphPrinting example configuration error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since Qt 6.10, projects that need to link to GuiPrivate need to have found Qt::GuiPrivate package. Projects that need rhi/qrhi.h need to link to GuiPrivate. Fixes: QTBUG-141518 Change-Id: Ia10459f6d0da402f614abce53a05e558de0498e5 Reviewed-by: Kwanghyo Park Reviewed-by: Tomi Korpipää (cherry picked from commit 44f6e949673bf28ed2e33e44cf8c9e45752e1c5f) Reviewed-by: Qt Cherry-pick Bot --- examples/graphs/graphprinting/CMakeLists.txt | 8 +------- examples/graphs/graphprinting/graphprinter.h | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/examples/graphs/graphprinting/CMakeLists.txt b/examples/graphs/graphprinting/CMakeLists.txt index fecf2d89..682f5fa9 100644 --- a/examples/graphs/graphprinting/CMakeLists.txt +++ b/examples/graphs/graphprinting/CMakeLists.txt @@ -16,12 +16,7 @@ endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}") -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Quick) -find_package(Qt6 COMPONENTS Quick3D) -find_package(Qt6 COMPONENTS Graphs) -find_package(Qt6 COMPONENTS PrintSupport) +find_package(Qt6 REQUIRED COMPONENTS Core Gui GuiPrivate Quick Graphs PrintSupport) qt_standard_project_setup(REQUIRES 6.8) @@ -37,7 +32,6 @@ target_link_libraries(graphprinting PRIVATE Qt::Core Qt::Gui Qt::Quick - Qt::Quick3D Qt::Graphs Qt::PrintSupport Qt::GuiPrivate diff --git a/examples/graphs/graphprinting/graphprinter.h b/examples/graphs/graphprinting/graphprinter.h index d3bd9a78..3d5f3043 100644 --- a/examples/graphs/graphprinting/graphprinter.h +++ b/examples/graphs/graphprinting/graphprinter.h @@ -6,7 +6,6 @@ #include #include -#include #include class GraphPrinter : public QObject {