Paint Context is moving further than the Widget that contains it (more info below).

Nacho Sierra
Tue, 23 Nov 2021 09:09:47 +0000
UI

I’m overriding Widget’s OnPaint function to draw lines. It works great at first, but if I place my child widgets (the one who does the override) in a different place of their parent Canvas, the PaintContext moves to a wrong position (or something like that). Any idea on how to fix this behavior?

1 post - 1 participant