Fix GUI/render-thread data race in canvas-painter custom series


Extend the paint-snapshot approach to QCustomSeries: rendering now goes
through QCustomSeriesCanvasRenderer, whose synchronizeData() is the
only place it is safe to exchange data between the GUI and render
threads, since it runs on the GUI thread while it is blocked at the
Qt Quick sync point. canvasPaint()/canvasPrePaint() then run later on
the render thread using only what was copied during that sync.

[ChangeLog][Graphs2D] Custom 2D series can now be rendered with
QCanvasPainter.

Amends 03e677e12594c10e9658b1bbed695512359c9564.

Pick-to: 6.12
Task-number: QTBUG-148186
Task-number: QTBUG-146286
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Change-Id: Ief50d8dccbe1c66b2ebae20cff0e2cca3cf12772
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
commite47df6a3b26f24982ca5567a8f34a98d9ac4142f
parent1da296f4f36daeca07213efb360549ae2f2075a4
authorSami Varanka <sami.varanka@qt.io>
committerSami Varanka <sami.varanka@qt.io>
commit timeWed, 12 Aug 2026 16:35:01 +0000