QPaintEvent Class Reference
The QPaintEvent class contains event parameters for paint events.
More...
#include <qevent.h>
Inherits QEvent.
List of all member functions.
Public Members
- QPaintEvent ( const QRegion & paintRegion, bool erased = TRUE )
- QPaintEvent ( const QRect & paintRect, bool erased = TRUE )
- const QRect & rect () const
- const QRegion & region () const
- bool erased () const
Detailed Description
The QPaintEvent class contains event parameters for paint events.
Paint events are sent to widgets that need to update themselves, for instance
when a part of a widget is exposed because an overlying widget is moved away.
The event handler QWidget::paintEvent() receives paint events.
See also QPainter, QWidget::update(), and QWidget::repaint().
Member Function Documentation
QPaintEvent::QPaintEvent ( const QRegion & paintRegion, bool erased = TRUE )
Constructs a paint event object with the region that should be updated.
QPaintEvent::QPaintEvent ( const QRect & paintRect, bool erased = TRUE )
Constructs a paint event object with the rectangle that should be updated.
bool QPaintEvent::erased () const
Returns whether the paint event region (or rectangle) has been
erased with the widget's background.
const QRect & QPaintEvent::rect () const
Returns the rectangle that should be updated.
See also region() and QPainter::setClipRect().
const QRegion & QPaintEvent::region () const
Returns the region that should be updated.
See also rect() and QPainter::setClipRegion().
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.2.0
|