QCanvasBoxGradient: simplify constructor


The constructor with 6 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 only the
parameter for the dimension.

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

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