1QPaintEvent(3qt)                                              QPaintEvent(3qt)
2
3
4

NAME

6       QPaintEvent - Event parameters for paint events
7

SYNOPSIS

9       #include <qevent.h>
10
11       Inherits QEvent.
12
13   Public Members
14       QPaintEvent ( const QRegion & paintRegion, bool erased = TRUE )
15       QPaintEvent ( const QRect & paintRect, bool erased = TRUE )
16       QPaintEvent ( const QRegion & paintRegion, const QRect & paintRect,
17           bool erased = TRUE )
18       const QRect & rect () const
19       const QRegion & region () const
20       bool erased () const
21

DESCRIPTION

23       The QPaintEvent class contains event parameters for paint events.
24
25       Paint events are sent to widgets that need to update themselves, for
26       instance when part of a widget is exposed because a covering widget is
27       moved.
28
29       The event contains a region() that needs to be updated, and a rect()
30       that is the bounding rectangle of that region. Both are provided
31       because many widgets can't make much use of region(), and rect() can be
32       much faster than region().boundingRect(). Painting is clipped to
33       region() during processing of a paint event.
34
35       The erased() function returns TRUE if the region() has been cleared to
36       the widget's background (see QWidget::backgroundMode()), and FALSE if
37       the region's contents are arbitrary.
38
39       See also QPainter, QWidget::update(), QWidget::repaint(),
40       QWidget::paintEvent(), QWidget::backgroundMode, QRegion, and Event
41       Classes.
42

MEMBER FUNCTION DOCUMENTATION

QPaintEvent::QPaintEvent ( const QRegion & paintRegion, bool erased = TRUE )

45       Constructs a paint event object with the region that should be updated.
46       The region is given by paintRegion. If erased is TRUE the region will
47       be cleared before repainting.
48

QPaintEvent::QPaintEvent ( const QRect & paintRect, bool erased = TRUE )

50       Constructs a paint event object with the rectangle that should be
51       updated. The region is also given by paintRect. If erased is TRUE the
52       region will be cleared before repainting.
53

QPaintEvent::QPaintEvent ( const QRegion & paintRegion, const QRect &

55       paintRect, bool erased = TRUE )
56       Constructs a paint event object with the rectangle paintRect that
57       should be updated. The region is given by paintRegion. If erased is
58       TRUE the region will be cleared before repainting.
59

bool QPaintEvent::erased () const

61       Returns TRUE if the paint event region (or rectangle) has been erased
62       with the widget's background; otherwise returns FALSE.
63

const QRect & QPaintEvent::rect () const

65       Returns the rectangle that should be updated.
66
67       See also region() and QPainter::setClipRect().
68
69       Examples:
70

const QRegion & QPaintEvent::region () const

72       Returns the region that should be updated.
73
74       See also rect() and QPainter::setClipRegion().
75
76       Examples:
77
78

SEE ALSO

80       http://doc.trolltech.com/qpaintevent.html
81       http://www.trolltech.com/faq/tech.html
82
84       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
85       license file included in the distribution for a complete license
86       statement.
87

AUTHOR

89       Generated automatically from the source code.
90

BUGS

92       If you find a bug in Qt, please report it as described in
93       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
94       help you. Thank you.
95
96       The definitive Qt documentation is provided in HTML format; it is
97       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
98       web browser. This man page is provided as a convenience for those users
99       who prefer man pages, although this format is not officially supported
100       by Trolltech.
101
102       If you find errors in this manual page, please report them to qt-
103       bugs@trolltech.com.  Please include the name of the manual page
104       (qpaintevent.3qt) and the Qt version (3.3.8).
105
106
107
108Trolltech AS                    2 February 2007               QPaintEvent(3qt)
Impressum