Window/Screencapture tests: Check that QVideoFrame has expected size


This patch adds tests to QScreenCapture and QWindowCapture to verify
that the received QVideoFrames have the expected size.

For window-capture, there tends to be a minor delay between
QWindow being resized and the effect being visible in the backend. We
add a small delay between resizing and starting capture to account for
this.

Pick-to: 6.12
Change-Id: Ia457b7c8430eec82c0e1a6581e7a9515f4e5dcdf
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commitfc2456b85815e1c40d29dc26b3bff1b74d3dc834
parent15d0390a764f7109354e49886fc8fbc085c73a41
authorNils Petter Skålerud <nils.petter.skalerud@qt.io>
committerNils Petter Skålerud <nils.petter.skalerud@qt.io>
commit timeTue, 29 Sep 2026 08:07:59 +0000