QCanvasGridPattern: simplify constructor


The constructor with 9 parameters of the same type was hard to use, and
code calling it hard to read and understand. There is no advantage over
calling the property setters explicitly after constructing with the
startPosition and cellSize parameters, which were also incorrectly
named.

Remove the defaulted parameters, and adjust tests, examples, and
documentation.

Pick-to: 6.12
Task-number: QTBUG-146286
Change-Id: Iae683760265a3e525e1ad2fe11dadf5403265132
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit1cab6ea850ea1eb09f22693b2fea3d4a1370f2b9
parent26f5380762ddb5f785b2f52717f4a01dfa937423
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeMon, 24 Aug 2026 19:49:33 +0000