![]() |
Home · Overviews · Examples |
The QPaintEvent class contains event parameters for paint events. More...
Inherits QEvent.
The QPaintEvent class contains event parameters for paint events.
Paint events are sent to widgets that need to update themselves, for instance when part of a widget is exposed because a covering widget was moved.
The event contains a region that needs to be updated, and a rect that is the bounding rectangle of that region. Both are provided because many widgets can't make much use of region, and rect can be much faster than region.boundingRect(). Painting is clipped to region during the processing of a paint event.
See also QPainter, QWidget::update, QWidget::repaint, and QWidget::paintEvent.
Copyright © 2008 Trolltech | Trademarks | Qt Jambi 4.3.5_01 |