Canvas2D: Make path2d a proper QML type


Follow the design of transform2d and make also path2d a proper QML
value type. Adjust the example code.

Task-number: QTBUG-145955
Change-Id: I41b0ff13944eb2b97b4f6d3fbb2a08ccdd27d6c3
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
commitedf082af9d6bb9e3edd345135e6a689d977489b5
parentab41598a4dba06cc702356e0f328f4244167e35f
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeTue, 12 May 2026 12:24:35 +0000