Open up the debug property of QQuickCPainterItem


Document what this is about, and the two related environment variables.

And move the code filling the map to a "common" location, in case
QCPAINTER_DEBUG_COLLECT is implemented in the future for QCPainterWidget
as well.

Pick-to: 6.11
Change-Id: I62d7f9aa59564b374b8d11be0b512db9c35753cc
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commitc2e1df3f942ef19d520c6f1e11f31cd15cec11a1
parent934bf101cd62c6ec15adeb12438577aa81945c96
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeTue, 3 Feb 2026 13:05:30 +0100