What exactly does "Clipping" mean when we talk about painting in Qt?
-
Clipping means, that if you have overlapping windows for example, you only dar what is really visible, and hidden parts are not drawn (as they are overlapped, they might draw ouside the window etc).
In Qt, if you are using the widgets (e.g. under windows) with non native windows, so from the OS part, there is onkly one window and all widgets are painting on it, the widgets have to clip on their borders, so you can't paint outside your widget (what would otherwise work :-) ). -
Right
And the clip reagion can be as simple rectangle or a complex structure.
On the widget boundaries, the clipping is there automatically.Clipping ios alos used for redrawing formerly hidden parts of a widget, so you neend't repaint the whole thing if only a bit more is shown.