Fix crash when pressed index became invalid


PointRenderer caches the index of the pressed point but never updated
it when the series changed, so a later release could reference the wrong
point or index rects/points out of range and crash.

Track the series signals and keep the cached index in sync: shift it on
add and remove, drop it when the pressed point itself is removed, and
forget it when the whole point list is replaced.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pick-to: 6.12 6.11
Fixes: QTBUG-148514
Change-Id: I76c92f6aae2e7ba79e059be57272994e26082d68
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
commite34c4da5f6b614aea7b2c005540ef9a62259559a
parent1045402b0debadb5d236bb4d9ea2ed60d7c9fcc2
authorJere Tuliniemi <jere.tuliniemi@qt.io>
committerJere Tuliniemi <jere.tuliniemi@qt.io>
commit timeTue, 18 Aug 2026 10:37:46 +0000