QCapturableWindows, Windows: Stop exposing windows that fail capture


The Windows backend for QCapturableWindow would not filter out windows
that cannot be captured. All QCapturableWindows returned by
QWindowCapture::capturableWindows() need to be valid and be working for
capture.

This patch adds stricter filtering when enumerating candidate windows
for capture.

This allows us to unblacklist a test.

Pick-to: 6.12
Change-Id: I784c984c351352acb6ec2310e8422dfeafc5aa25
Reviewed-by: Mikko Hallamaa <mikko.hallamaa@qt.io>
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commit1193b15d1c09cbc2ee9dc5660380d54535dc485a
parente40808d9c13e8a7f640e26f6d721c85a9d2d07bb
authorNils Peter Skålerud <nils.petter.skalerud@qt.io>
committerNils Petter Skålerud <nils.petter.skalerud@qt.io>
commit timeThu, 22 Oct 2026 09:36:47 +0000