QCPainter: don't return const values


As we return a copy rather than a reference, the const adds no value and
prevents moving of the returned object into the target.

Pick-to: 6.11
Change-Id: Ib03bf025d715de2ce3890c88477d414ca0aefd34
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commita2a98c4e7b522d428e573cc1b6b5f55194609bcd
parent2e9cdc174c4b507b4074b5d324ab9bd8a3861fdf
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeTue, 17 Feb 2026 16:01:58 +0100