qtdoc/examples/demos/documentviewer/plugins/pdfviewer
Kai Köhne e31802fb15 documentviewer: Fix deployment for macOS, Windows, Linux
Adapt the logic to install and detect especially the
plugins libs:

* Do not just compile them into the app build folder, but
  keep the libs separate under the 'plugins' direcory
* At installation time, follow the logic of *deployqt
  for Qt plugins, and store them in CMAKE_INSTALL_PREFIX/plugins
  (Linux, Windows) or Document Viewer.app/Contents/Plugins
  (macOS).

Unfortunately, this all requires different look ups at runtime for
all operating systems. For macOS and Windows, we furthermore need
to check both for valid paths with an installed build, and an
un-installed build.

While at it, move the install logic to app/CMakeLists.txt, so that
there is less repetition.

An alternative approach would be to calculate the relative paths
at configure time, and either pass on command line or in a created
header file. Anyhow, the current approach is more compact.

Pick-to: 6.10
Fixes: QTBUG-138476
Change-Id: I467d3bd4e14ef6b8b747bceb7177837e2edd3b8c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2025-07-15 16:49:02 +02:00
..
CMakeLists.txt documentviewer: Fix deployment for macOS, Windows, Linux 2025-07-15 16:49:02 +02:00
hoverwatcher.cpp Migrate documentviewer example into plugin based architecture 2023-05-02 10:11:06 +02:00
hoverwatcher.h Fix documentviewer namespace build 2023-06-08 09:54:59 +02:00
pdfviewer.cpp documentviewer: Remove support for Qt releases before 6.6 2025-07-13 15:37:35 +02:00
pdfviewer.h documentviewer: Clean up use of printsupport macro 2025-07-10 14:20:55 +02:00
pdfviewer.json Migrate documentviewer example into plugin based architecture 2023-05-02 10:11:06 +02:00
pdfviewer_de.ts documentviewer: Add German translations also for pdfviewer 2025-07-09 16:15:01 +02:00
pdfviewer_en.ts documentviewer: Add German translations also for pdfviewer 2025-07-09 16:15:01 +02:00
zoomselector.cpp documentviewer: Add German translations also for pdfviewer 2025-07-09 16:15:01 +02:00
zoomselector.h Migrate documentviewer example into plugin based architecture 2023-05-02 10:11:06 +02:00