1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/kernel/qevent.cpp -->
7
<title>Qt 4.0: Qt 3 Support Members for QPaintEvent</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">Qt 3 Support Members for QPaintEvent</h1>
21
<p><b>The following class members are part of the Qt 3 support layer.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
22
<p><ul><li><a href="qpaintevent.html">QPaintEvent class reference</a></li></ul></p>
23
<h3>Public Functions</h3>
25
<li><div class="fn"/><b><a href="qpaintevent-qt3.html#QPaintEvent-3">QPaintEvent</a></b> ( const QRegion & <i>paintRegion</i>, const QRect & <i>paintRect</i> )</li>
26
<li><div class="fn"/>bool <b><a href="qpaintevent-qt3.html#erased">erased</a></b> () const</li>
29
<h2>Member Function Documentation</h2>
30
<h3 class="fn"><a name="QPaintEvent-3"></a>QPaintEvent::QPaintEvent ( const <a href="qregion.html">QRegion</a> & <i>paintRegion</i>, const <a href="qrect.html">QRect</a> & <i>paintRect</i> )</h3>
31
<p>Constructs a paint event object with both a <i>paintRegion</i> and a <i>paintRect</i>, both of which represent the area of the widget that needs to be updated.</p>
32
<h3 class="fn"><a name="erased"></a>bool QPaintEvent::erased () const</h3>
33
<p>Returns true if the paint event region (or rectangle) has been erased with the widget's background; otherwise returns false.</p>
34
<p>Qt 4 <i>always</i> erases regions that require painting. The exception to this rule is if the widget sets the <a href="qt.html#WidgetAttribute-enum">Qt::WA_NoBackground</a> or <a href="qt.html#WidgetAttribute-enum">Qt::WA_NoSystemBackground</a> attributes. If either one of those attributes is set <i>and</i> the window system does not make use of subwidget alpha composition (currently <a href="winsystem.html#x11">X11</a> and Windows, but this may change), then the region is not erased.</p>
35
<p /><address><hr /><div align="center">
36
<table width="100%" cellspacing="0" border="0"><tr class="address">
37
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
38
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
39
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
40
</tr></table></div></address></body>