The QPaintEvent class contains event parameters for paint events.
The QPainter class performs low-level painting on widgets and other paint devices.
void setClipRegion(const QRegion &, Qt::ClipOperation op=Qt::ReplaceClip)
Sets the clip region to the given region using the specified clip operation.
\inmodule QtCore\reentrant
QRect intersected(const QRect &other) const noexcept
The QRegion class specifies a clip region for a painter.