Add QThreadFunction::futureWatcher() non-const overload


Otherwise the returned pointer is const and produces the following error:
invalid conversion from ‘const QFutureWatcher<int>*’
to ‘QFutureWatcher<int>*’.

Add a compilation test for it.

Pick-to: 6.11 6.11.0
Change-Id: Ib93f85cd2d14a2eef710c6e4c55a3addb23e98e1
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit2c9389508e97e7e9c3ddf13d382c3e96cf9b1df4
parent3fcb506a78077e80fccf0f8e2a108db3b1c3e8e2
authorJarek Kobus <jaroslaw.kobus@qt.io>
committerJarek Kobus <jaroslaw.kobus@qt.io>
commit timeWed, 4 Mar 2026 11:17:01 +0100