QSurfaceCapture: Add private APIs for hiding cursor and drop shadows


Our tests for window/screen capture can be interfered by capturing
cursor and by the implementation including window drop shadows as part
of the stream. This is particularly problematic when introducing
more strict integration tests.

This patch introduces a private API to hide cursor and drop shadows when
capturing a window or screen. The patch includes an implementation for
macOS. The patch incorporates these private APIs into
tst_qwindowcapturebackend.

The patch does some minor refactoring of QMacScreenCaptureKit to store
the new information.

TODO: Apply similar changes for QScreenCapture integration tests.

Pick-to: 6.12
Change-Id: Iff647b0671be6706477667d8a1a381da94a93727
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commitfd01be0b50d0d1872698648585bc845729af96d6
parent2b1968e145d7c17869c4c350451bc9beb6452405
authorNils Petter Skålerud <nils.petter.skalerud@qt.io>
committerNils Petter Skålerud <nils.petter.skalerud@qt.io>
commit timeThu, 20 Aug 2026 12:14:27 +0000