QML, ScreenCapture: Add unit tests for QML -> C++ bridging


It's an intended feature that the QML ScreenCapture object can be
directly passed into C++ as a QScreenCapture object. This patch adds
unit tests that make sure the conversion works as expected and that
changes on either side are reflected across the language boundary.

Pick-to: 6.12
Change-Id: If8a71f3ef5029aa8a7ddc5ee616b81070c5fdb44
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commitd3f11ff212e45acea5947ae5b0d940cda2cd4739
parenta6512f42bea76527dee86643d86c4808e4702cf9
authorNils Petter Skålerud <nils.petter.skalerud@qt.io>
committerNils Petter Skålerud <nils.petter.skalerud@qt.io>
commit timeTue, 25 Aug 2026 10:43:54 +0000