I find a solution.

I stock a global list of points computed from my C function call from QPainter. And I return than to qpainter to display them.