tst_qwindowcapturebackend: Check switching does not emit active-changed


QWindowCapture::setWindow should not emit activeChanged false and then
true when switching between windows. Such behavior can interfere with
QMediaRecorder::autoStop.

This patch adds a test to verify that switching between windows does not
emit any activation signals, when window-change is successful.

Pick-to: 6.12
Change-Id: I1f66c22059d6f0b225dc9018066c2f5aacc90619
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commit1b44f7034a5f8524862a3f164f86986c64cc116c
parent15fd9f7da4ee09b5ea2b40a8ade7d02dc2298091
authorNils Petter Skålerud <nils.petter.skalerud@qt.io>
committerNils Petter Skålerud <nils.petter.skalerud@qt.io>
commit timeFri, 9 Oct 2026 04:45:39 +0000