Support move-only callables in grabCanvas()


std::function requires its target to be copy-constructible, so a lambda
capturing a move-only type, std::unique_ptr for instance, could not be
passed to grabCanvas().

Switch to the machinery based on QSlotObjectBase.

Pick-to: 6.12
Change-Id: I8237049c631ac5d22c47c8759d46c406d6bd66a4
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit3a08c1ff44c99fa8169e4fc337b7c1b85b4e4aef
parenteec6e4d1d24cc1ae45622da7583a70b96c27e688
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeMon, 17 Aug 2026 13:13:23 +0000