Support creating gradients from an image


Add API to create gradients directly from an image, instead of
defining stops and creating the gradient image from them.
Use innerCol.a as the image texture y-coordinate, so single
image can contain multiple gradients.
Show this feature in the gallery example.

Task-number: QTBUG-143956
Change-Id: I72e048373d985c27529d7708aec69c5509737ef8
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit984c8fcb904c4129cf110ef9e192f29707b4ad61
parent7b403d4497a9bef2b273fcfac09941ef475caa25
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeTue, 5 May 2026 15:10:45 +0000