Canvas2D: Support addPath()


Support addPath(path2d, transform2d) in Canvas2D, similarly as in
Canvas Painter and in path2d. Note that we don't want to add version
that takes svgPath into Canvas2D itself, as it requires string parsing,
so it is better to be only in (static) QCanvasPath and path2D APIs.
Use this method in the canvas2dtester example.

Change-Id: Ia175451cad307e865e0fb6cef6b9f6c3547cdd1e
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
commitaa46f8545a1583dee44200b1709ec4ce1b17b6ad
parentedf082af9d6bb9e3edd345135e6a689d977489b5
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeTue, 12 May 2026 12:24:44 +0000