Canvas2D: Add support for fillRules


Support fillRule property, like Quick Canvas. Both the HTML canvas 2d
context naming ("nonzero", "evenodd") and Quick Canvas
("WindingFill", "OddEvenFill") are supported for maximum compatibility.
In the getter, returning rule as a string to match with lineCap &
lineJoin properties.

Also support fillRule as a parameter of fill(), like Canvas Painter
and HTML 2d context do.

Task-number: QTBUG-145956
Change-Id: I05d693c5ad14449c2728f3aef4ecd07f739d0606
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
commit95eff51f0829ece08af30286293a94f3c3099c10
parent0b70f15f589ec931efac0c1c492d4fe28ddd65be
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeSun, 31 May 2026 17:40:57 +0000