Fix: GraphPrinting example configuration error

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 <kwanghyo.park@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 44f6e94967)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Sami Varanka 2025-10-30 09:48:56 +02:00 committed by Qt Cherry-pick Bot
parent b88faf0908
commit ecbb362831
2 changed files with 1 additions and 8 deletions

View File

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

View File

@ -6,7 +6,6 @@
#include <QtCore/qfile.h>
#include <QtGui>
#include <QtPrintSupport>
#include <QtQml/qqmlregistration.h>
class GraphPrinter : public QObject {