3
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/qt3support/painting/q3picture.cpp -->
7
<title>Qt 4.5: Q3Picture Class Reference</title>
7
<title>Qt 4.6: Q3Picture Class Reference</title>
8
8
<link href="classic.css" rel="stylesheet" type="text/css" />
11
<a name="//apple_ref/cpp/cl//Q3Picture" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
13
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="namespaces.html"><font color="#004faf">All Namespaces</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="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">Q3Picture Class Reference<br /><span class="small-subtitle">[<a href="qt3support.html">Qt3Support</a> module]</span>
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
15
<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="functions.html"><font color="#004faf">All Functions</font></a> · <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
16
</tr></table><h1 class="title">Q3Picture Class Reference<br /><span class="small-subtitle">[<a href="qt3support.html">Qt3Support</a> module]</span>
17
18
<p>The Q3Picture class is a paint device that records and replays <a href="q3painter.html">Q3Painter</a> commands. <a href="#details">More...</a></p>
18
19
<pre> #include <Q3Picture></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qpicture">Porting to Qt 4</a> for more information.</p>
21
22
<li><a href="q3picture-members.html">List of all members, including inherited members</a></li>
23
25
<a name="public-functions"></a>
24
<h3>Public Functions</h3>
26
<li><div class="fn"></div><b><a href="q3picture.html#Q3Picture">Q3Picture</a></b> ()</li>
27
<li><div class="fn"></div><b><a href="q3picture.html#Q3Picture-2">Q3Picture</a></b> ( const QPicture & <i>other</i> )</li>
28
<li><div class="fn"></div>bool <b><a href="q3picture.html#load">load</a></b> ( QIODevice * <i>device</i>, const char * <i>format</i> = 0 )</li>
29
<li><div class="fn"></div>bool <b><a href="q3picture.html#load-2">load</a></b> ( const QString & <i>fileName</i>, const char * <i>format</i> = 0 )</li>
30
<li><div class="fn"></div>bool <b><a href="q3picture.html#save">save</a></b> ( QIODevice * <i>device</i>, const char * <i>format</i> = 0 )</li>
31
<li><div class="fn"></div>bool <b><a href="q3picture.html#save-2">save</a></b> ( const QString & <i>fileName</i>, const char * <i>format</i> = 0 )</li>
34
<li><div class="fn"></div>12 public functions inherited from <a href="qpicture.html#public-functions">QPicture</a></li>
35
<li><div class="fn"></div>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
26
<h2>Public Functions</h2>
27
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
28
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3picture.html#Q3Picture">Q3Picture</a></b> ()</td></tr>
29
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="q3picture.html#Q3Picture-2">Q3Picture</a></b> ( const QPicture & <i>other</i> )</td></tr>
30
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3picture.html#load">load</a></b> ( QIODevice * <i>device</i>, const char * <i>format</i> = 0 )</td></tr>
31
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3picture.html#load-2">load</a></b> ( const QString & <i>fileName</i>, const char * <i>format</i> = 0 )</td></tr>
32
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3picture.html#save">save</a></b> ( QIODevice * <i>device</i>, const char * <i>format</i> = 0 )</td></tr>
33
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="q3picture.html#save-2">save</a></b> ( const QString & <i>fileName</i>, const char * <i>format</i> = 0 )</td></tr>
36
<li><div bar="2" class="fn"></div>12 public functions inherited from <a href="qpicture.html#public-functions">QPicture</a></li>
37
<li><div bar="2" class="fn"></div>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
37
39
<h3>Additional Inherited Members</h3>
39
<li><div class="fn"></div>1 protected function inherited from <a href="qpicture.html#protected-functions">QPicture</a></li>
40
41
<li><div class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
42
43
<a name="details"></a>
47
48
<p>See also <a href="qpicture.html">QPicture</a>.</p>
49
50
<h2>Member Function Documentation</h2>
51
<a name="//apple_ref/cpp/instm/Q3Picture/Q3Picture" />
50
52
<h3 class="fn"><a name="Q3Picture"></a>Q3Picture::Q3Picture ()</h3>
51
<p>Constructs a <a href="q3picture.html">Q3Picture</a>.</p>
53
<p>Constructs a <a href="q3picture.html" class="compat">Q3Picture</a>.</p>
52
54
<h3 class="fn"><a name="Q3Picture-2"></a>Q3Picture::Q3Picture ( const <a href="qpicture.html">QPicture</a> & <i>other</i> )</h3>
53
55
<p>Constructs a copy of <i>other</i>.</p>
56
<a name="//apple_ref/cpp/instm/Q3Picture/load" />
54
57
<h3 class="fn"><a name="load"></a>bool Q3Picture::load ( <a href="qiodevice.html">QIODevice</a> * <i>device</i>, const char * <i>format</i> = 0 )</h3>
55
58
<p>Loads the picture in the specified <i>format</i> from the given <i>device</i>. Returns true if the file is loaded successfully; otherwise returns false.</p>
56
59
<p>Note that when using the load() function to read SVG files, the format must be specified. For example:</p>
60
63
<h3 class="fn"><a name="load-2"></a>bool Q3Picture::load ( const <a href="qstring.html">QString</a> & <i>fileName</i>, const char * <i>format</i> = 0 )</h3>
61
64
<p>This is an overloaded function.</p>
62
65
<p>Loads the picture in the specified <i>format</i> from a file with the given <i>fileName</i>. Returns true if the file is loaded successfully; otherwise returns false.</p>
66
<a name="//apple_ref/cpp/instm/Q3Picture/save" />
63
67
<h3 class="fn"><a name="save"></a>bool Q3Picture::save ( <a href="qiodevice.html">QIODevice</a> * <i>device</i>, const char * <i>format</i> = 0 )</h3>
64
68
<p>Saves the picture in the specified <i>format</i> to the given <i>device</i>. Returns true if the save is successful. Returns false if, for example, the picture is still being painted, i.e., <a href="qpainter.html#end">QPainter::end</a>() has not yet been called.</p>
65
69
<p>Note that when using the save() function to save SVG files, the format must be specified. For example:</p>
76
80
<p>See also <a href="q3picture.html#load">load</a>().</p>
77
81
<p /><address><hr /><div align="center">
78
82
<table width="100%" cellspacing="0" border="0"><tr class="address">
79
<td width="30%" align="left">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
80
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
81
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
82
</tr></table></div></address></body>
83
<td width="40%" align="left">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
84
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
85
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
86
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>