Canvas2D: Support cleanupResources() and removePathGroup()


Add support of these Canvas Painter methods, so also Canvas2D users
are able to cleanup the resources. Use these in Lancelot tests.

Pick-to: 6.12
Change-Id: I6917ac328dbae03e365e706aef792a275acd3419
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
commitcb50a6a4136bd2a7f6b623875fe8a2c23451f0a2
parent5546d94fb9f6d9650f8f608019cebae6df8dd72d
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeFri, 26 Jun 2026 05:08:34 +0000