From db21728204f85de079274251dbb2b43bfc272a41 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Tue, 15 Jun 2021 17:50:46 +0200 Subject: Qt::PrintSupport is an optional component in the fontsampler example If we don't find it we can't link to it, and then the example will never have any print functionality, in spite of having the UI. Change-Id: Ib84be39a2655253c7d643520487adee054d5bd2d Reviewed-by: Alexandru Croitor (cherry picked from commit eee953aa56856da97e3104cf70ffe0cf7b27f891) Reviewed-by: Qt Cherry-pick Bot --- examples/widgets/painting/fontsampler/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/widgets/painting/fontsampler/CMakeLists.txt b/examples/widgets/painting/fontsampler/CMakeLists.txt index d3a7680bdc..76bae96edd 100644 --- a/examples/widgets/painting/fontsampler/CMakeLists.txt +++ b/examples/widgets/painting/fontsampler/CMakeLists.txt @@ -18,6 +18,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/painting/fontsampler") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 COMPONENTS PrintSupport) qt_add_executable(fontsampler main.cpp -- cgit v1.2.3