<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qsvggenerator.cpp --> <title>Qt 4.8: QSvgGenerator Class Reference</title> <link rel="stylesheet" type="text/css" href="style/style.css" /> <script src="scripts/jquery.js" type="text/javascript"></script> <script src="scripts/functions.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="style/superfish.css" /> <link rel="stylesheet" type="text/css" href="style/narrow.css" /> <!--[if IE]> <meta name="MSSmartTagsPreventParsing" content="true"> <meta http-equiv="imagetoolbar" content="no"> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie6.css"> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" type="text/css" href="style/style_ie7.css"> <![endif]--> <!--[if IE 8]> <link rel="stylesheet" type="text/css" href="style/style_ie8.css"> <![endif]--> <script src="scripts/superfish.js" type="text/javascript"></script> <script src="scripts/narrow.js" type="text/javascript"></script> </head> <body class="" onload="CheckEmptyAndLoadList();"> <div class="header" id="qtdocheader"> <div class="content"> <div id="nav-logo"> <a href="index.html">Home</a></div> <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a> <div id="narrowsearch"></div> <div id="nav-topright"> <ul> <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li> <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li> <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/"> DOC</a></li> <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li> </ul> </div> <div id="shortCut"> <ul> <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li> <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS </a></li> </ul> </div> <ul class="sf-menu" id="narrowmenu"> <li><a href="#">API Lookup</a> <ul> <li><a href="classes.html">Class index</a></li> <li><a href="functions.html">Function index</a></li> <li><a href="modules.html">Modules</a></li> <li><a href="namespaces.html">Namespaces</a></li> <li><a href="qtglobal.html">Global Declarations</a></li> <li><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </li> <li><a href="#">Qt Topics</a> <ul> <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li><a href="supported-platforms.html">Supported Platforms</a></li> <li><a href="technology-apis.html">Qt and Key Technologies</a></li> <li><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </li> <li><a href="#">Examples</a> <ul> <li><a href="all-examples.html">Examples</a></li> <li><a href="tutorials.html">Tutorials</a></li> <li><a href="demos.html">Demos</a></li> <li><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </li> </ul> </div> </div> <div class="wrapper"> <div class="hd"> <span></span> </div> <div class="bd group"> <div class="sidebar"> <div class="searchlabel"> Search index:</div> <div class="search" id="sidebarsearch"> <form id="qtdocsearch" action="" onsubmit="return false;"> <fieldset> <input type="text" name="searchstring" id="pageType" value="" /> <div id="resultdialog"> <a href="#" id="resultclose">Close</a> <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span> results:</p> <ul id="resultlist" class="all"> </ul> </div> </fieldset> </form> </div> <div class="box first bottombar" id="lookup"> <h2 title="API Lookup"><span></span> API Lookup</h2> <div id="list001" class="list"> <ul id="ul001" > <li class="defaultLink"><a href="classes.html">Class index</a></li> <li class="defaultLink"><a href="functions.html">Function index</a></li> <li class="defaultLink"><a href="modules.html">Modules</a></li> <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li> <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li> <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li> </ul> </div> </div> <div class="box bottombar" id="topics"> <h2 title="Qt Topics"><span></span> Qt Topics</h2> <div id="list002" class="list"> <ul id="ul002" > <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> <li class="defaultLink"><a href="qtquick.html">Device UIs & Qt Quick</a></li> <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li> <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> </ul> </div> </div> <div class="box" id="examples"> <h2 title="Examples"><span></span> Examples</h2> <div id="list003" class="list"> <ul id="ul003"> <li class="defaultLink"><a href="all-examples.html">Examples</a></li> <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li> <li class="defaultLink"><a href="demos.html">Demos</a></li> <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li> </ul> </div> </div> </div> <div class="wrap"> <div class="toolbar"> <div class="breadcrumb toolblock"> <ul> <li class="first"><a href="index.html">Home</a></li> <!-- Breadcrumbs go here --> <li><a href="modules.html">Modules</a></li> <li><a href="qtsvg.html">QtSvg</a></li> <li>QSvgGenerator</li> </ul> </div> <div class="toolbuttons toolblock"> <ul> <li id="smallA" class="t_button">A</li> <li id="medA" class="t_button active">A</li> <li id="bigA" class="t_button">A</li> <li id="print" class="t_button"><a href="javascript:this.print();"> <span>Print</span></a></li> </ul> </div> </div> <div class="content mainContent"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#properties">Properties</a></li> <li class="level1"><a href="#public-functions">Public Functions</a></li> <li class="level1"><a href="#protected-functions">Protected Functions</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <h1 class="title">QSvgGenerator Class Reference</h1> <!-- $$$QSvgGenerator-brief --> <p>The QSvgGenerator class provides a paint device that is used to create SVG drawings. <a href="#details">More...</a></p> <!-- @@@QSvgGenerator --> <pre class="cpp"> <span class="preprocessor">#include <QSvgGenerator></span></pre><p><b>Inherits: </b><a href="qpaintdevice.html">QPaintDevice</a>.</p> <p><b>Note:</b> All functions in this class are <a href="threads-reentrancy.html#reentrant">reentrant</a>.</p> <p>This class was introduced in Qt 4.3.</p> <ul> <li><a href="qsvggenerator-members.html">List of all members, including inherited members</a></li> </ul> <a name="properties"></a> <h2>Properties</h2> <table class="propsummary"> <tr><td class="topAlign"><ul> <li class="fn"><b><a href="qsvggenerator.html#description-prop">description</a></b> : QString</li> <li class="fn"><b><a href="qsvggenerator.html#fileName-prop">fileName</a></b> : QString</li> <li class="fn"><b><a href="qsvggenerator.html#outputDevice-prop">outputDevice</a></b> : QIODevice *</li> <li class="fn"><b><a href="qsvggenerator.html#resolution-prop">resolution</a></b> : int</li> </ul></td><td class="topAlign"><ul> <li class="fn"><b><a href="qsvggenerator.html#size-prop">size</a></b> : QSize</li> <li class="fn"><b><a href="qsvggenerator.html#title-prop">title</a></b> : QString</li> <li class="fn"><b><a href="qsvggenerator.html#viewBox-prop">viewBox</a></b> : QRectF</li> </ul> </td></tr> </table> <a name="public-functions"></a> <h2>Public Functions</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#QSvgGenerator">QSvgGenerator</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#dtor.QSvgGenerator">~QSvgGenerator</a></b> ()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#description-prop">description</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#fileName-prop">fileName</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QIODevice * </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#outputDevice-prop">outputDevice</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#resolution-prop">resolution</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#description-prop">setDescription</a></b> ( const QString & <i>description</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#fileName-prop">setFileName</a></b> ( const QString & <i>fileName</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#outputDevice-prop">setOutputDevice</a></b> ( QIODevice * <i>outputDevice</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#resolution-prop">setResolution</a></b> ( int <i>dpi</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#size-prop">setSize</a></b> ( const QSize & <i>size</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#title-prop">setTitle</a></b> ( const QString & <i>title</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#viewBox-prop">setViewBox</a></b> ( const QRect & <i>viewBox</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#viewBox-prop">setViewBox</a></b> ( const QRectF & <i>viewBox</i> )</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#size-prop">size</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#title-prop">title</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#viewBox">viewBox</a></b> () const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#viewBox-prop">viewBoxF</a></b> () const</td></tr> </table> <ul> <li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li> </ul> <a name="reimplemented-protected-functions"></a> <h2>Reimplemented Protected Functions</h2> <table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#metric">metric</a></b> ( QPaintDevice::PaintDeviceMetric <i>metric</i> ) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual QPaintEngine * </td><td class="memItemRight bottomAlign"><b><a href="qsvggenerator.html#paintEngine">paintEngine</a></b> () const</td></tr> </table> <ul> <li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li> </ul> <a name="details"></a> <!-- $$$QSvgGenerator-description --> <div class="descr"> <h2>Detailed Description</h2> <p>The QSvgGenerator class provides a paint device that is used to create SVG drawings.</p> <p>This paint device represents a Scalable Vector Graphics (SVG) drawing. Like <a href="qprinter.html">QPrinter</a>, it is designed as a write-only device that generates output in a specific format.</p> <p>To write an SVG file, you first need to configure the output by setting the <a href="qsvggenerator.html#fileName-prop">fileName</a> or <a href="qsvggenerator.html#outputDevice-prop">outputDevice</a> properties. It is usually necessary to specify the size of the drawing by setting the <a href="qsvggenerator.html#size-prop">size</a> property, and in some cases where the drawing will be included in another, the <a href="qsvggenerator.html#viewBox-prop">viewBox</a> property also needs to be set.</p> <pre class="cpp"> <span class="type">QSvgGenerator</span> generator; generator<span class="operator">.</span>setFileName(path); generator<span class="operator">.</span>setSize(<span class="type"><a href="qsize.html">QSize</a></span>(<span class="number">200</span><span class="operator">,</span> <span class="number">200</span>)); generator<span class="operator">.</span>setViewBox(<span class="type"><a href="qrect.html">QRect</a></span>(<span class="number">0</span><span class="operator">,</span> <span class="number">0</span><span class="operator">,</span> <span class="number">200</span><span class="operator">,</span> <span class="number">200</span>)); generator<span class="operator">.</span>setTitle(tr(<span class="string">"SVG Generator Example Drawing"</span>)); generator<span class="operator">.</span>setDescription(tr(<span class="string">"An SVG drawing created by the SVG Generator "</span> <span class="string">"Example provided with Qt."</span>));</pre> <p>Other meta-data can be specified by setting the <i>title</i>, <i>description</i> and <i>resolution</i> properties.</p> <p>As with other <a href="qpaintdevice.html">QPaintDevice</a> subclasses, a <a href="qpainter.html">QPainter</a> object is used to paint onto an instance of this class:</p> <pre class="cpp"> <span class="type"><a href="qpainter.html">QPainter</a></span> painter; painter<span class="operator">.</span>begin(<span class="operator">&</span>generator); ... painter<span class="operator">.</span>end();</pre> <p>Painting is performed in the same way as for any other paint device. However, it is necessary to use the <a href="qpainter.html#begin">QPainter::begin</a>() and <a href="qpainter.html#end">end()</a> to explicitly begin and end painting on the device.</p> <p>The <a href="painting-svggenerator.html">SVG Generator Example</a> shows how the same painting commands can be used for painting a widget and writing an SVG file.</p> </div> <p><b>See also </b><a href="qsvgrenderer.html">QSvgRenderer</a>, <a href="qsvgwidget.html">QSvgWidget</a>, and <a href="http://www.w3.org/Graphics/SVG/About.html">About SVG</a>.</p> <!-- @@@QSvgGenerator --> <div class="prop"> <h2>Property Documentation</h2> <!-- $$$description-prop$$$description$$$setDescriptionconstQString& --> <h3 class="fn"><a name="description-prop"></a><span class="name">description</span> : <span class="type"><a href="qstring.html">QString</a></span></h3> <p>This property holds the description of the generated SVG drawing.</p> <p>This property was introduced in Qt 4.5.</p> <p><b>Access functions:</b></p> <table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>description</b></span> () const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDescription</b></span> ( const QString & <i>description</i> )</td></tr> </table> <p><b>See also </b><a href="qsvggenerator.html#title-prop">title</a>.</p> <!-- @@@description --> <!-- $$$fileName-prop$$$fileName$$$setFileNameconstQString& --> <h3 class="fn"><a name="fileName-prop"></a><span class="name">fileName</span> : <span class="type"><a href="qstring.html">QString</a></span></h3> <p>This property holds the target filename for the generated SVG drawing.</p> <p>This property was introduced in Qt 4.5.</p> <p><b>Access functions:</b></p> <table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>fileName</b></span> () const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFileName</b></span> ( const QString & <i>fileName</i> )</td></tr> </table> <p><b>See also </b><a href="qsvggenerator.html#outputDevice-prop">outputDevice</a>.</p> <!-- @@@fileName --> <!-- $$$outputDevice-prop$$$outputDevice$$$setOutputDeviceQIODevice* --> <h3 class="fn"><a name="outputDevice-prop"></a><span class="name">outputDevice</span> : <span class="type"><a href="qiodevice.html">QIODevice</a></span> *</h3> <p>This property holds the output device for the generated SVG drawing.</p> <p>If both output device and file name are specified, the output device will have precedence.</p> <p>This property was introduced in Qt 4.5.</p> <p><b>Access functions:</b></p> <table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QIODevice * </td><td class="memItemRight bottomAlign"><span class="name"><b>outputDevice</b></span> () const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOutputDevice</b></span> ( QIODevice * <i>outputDevice</i> )</td></tr> </table> <p><b>See also </b><a href="qsvggenerator.html#fileName-prop">fileName</a>.</p> <!-- @@@outputDevice --> <!-- $$$resolution-prop$$$resolution$$$setResolutionint --> <h3 class="fn"><a name="resolution-prop"></a><span class="name">resolution</span> : <span class="type">int</span></h3> <p>This property holds the resolution of the generated output.</p> <p>The resolution is specified in dots per inch, and is used to calculate the physical size of an SVG drawing.</p> <p>This property was introduced in Qt 4.5.</p> <p><b>Access functions:</b></p> <table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>resolution</b></span> () const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setResolution</b></span> ( int <i>dpi</i> )</td></tr> </table> <p><b>See also </b><a href="qsvggenerator.html#size-prop">size</a> and <a href="qsvggenerator.html#viewBox-prop">viewBox</a>.</p> <!-- @@@resolution --> <!-- $$$size-prop$$$size$$$setSizeconstQSize& --> <h3 class="fn"><a name="size-prop"></a><span class="name">size</span> : <span class="type"><a href="qsize.html">QSize</a></span></h3> <p>This property holds the size of the generated SVG drawing.</p> <p>By default this property is set to <tt>QSize(-1, -1)</tt>, which indicates that the generator should not output the width and height attributes of the <tt><svg></tt> element.</p> <p><b>Note:</b> It is not possible to change this property while a <a href="qpainter.html">QPainter</a> is active on the generator.</p> <p>This property was introduced in Qt 4.5.</p> <p><b>Access functions:</b></p> <table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>size</b></span> () const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSize</b></span> ( const QSize & <i>size</i> )</td></tr> </table> <p><b>See also </b><a href="qsvggenerator.html#viewBox-prop">viewBox</a> and <a href="qsvggenerator.html#resolution-prop">resolution</a>.</p> <!-- @@@size --> <!-- $$$title-prop$$$title$$$setTitleconstQString& --> <h3 class="fn"><a name="title-prop"></a><span class="name">title</span> : <span class="type"><a href="qstring.html">QString</a></span></h3> <p>This property holds the title of the generated SVG drawing.</p> <p>This property was introduced in Qt 4.5.</p> <p><b>Access functions:</b></p> <table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>title</b></span> () const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTitle</b></span> ( const QString & <i>title</i> )</td></tr> </table> <p><b>See also </b><a href="qsvggenerator.html#description-prop">description</a>.</p> <!-- @@@title --> <!-- $$$viewBox-prop$$$viewBoxF$$$setViewBoxconstQRect&$$$setViewBoxconstQRectF& --> <h3 class="fn"><a name="viewBox-prop"></a><span class="name">viewBox</span> : <span class="type"><a href="qrectf.html">QRectF</a></span></h3> <p>This property holds the viewBox of the generated SVG drawing.</p> <p>By default this property is set to <tt>QRect(0, 0, -1, -1)</tt>, which indicates that the generator should not output the viewBox attribute of the <tt><svg></tt> element.</p> <p><b>Note:</b> It is not possible to change this property while a <a href="qpainter.html">QPainter</a> is active on the generator.</p> <p>This property was introduced in Qt 4.5.</p> <p><b>Access functions:</b></p> <table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> QRectF </td><td class="memItemRight bottomAlign"><span class="name"><b>viewBoxF</b></span> () const</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewBox</b></span> ( const QRect & <i>viewBox</i> )</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewBox</b></span> ( const QRectF & <i>viewBox</i> )</td></tr> </table> <p><b>See also </b><a href="qsvggenerator.html#viewBox">viewBox</a>(), <a href="qsvggenerator.html#size-prop">size</a>, and <a href="qsvggenerator.html#resolution-prop">resolution</a>.</p> <!-- @@@viewBox --> </div> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QSvgGenerator[overload1]$$$QSvgGenerator --> <h3 class="fn"><a name="QSvgGenerator"></a>QSvgGenerator::<span class="name">QSvgGenerator</span> ()</h3> <p>Constructs a new generator.</p> <!-- @@@QSvgGenerator --> <!-- $$$~QSvgGenerator[overload1]$$$~QSvgGenerator --> <h3 class="fn"><a name="dtor.QSvgGenerator"></a>QSvgGenerator::<span class="name">~QSvgGenerator</span> ()</h3> <p>Destroys the generator.</p> <!-- @@@~QSvgGenerator --> <!-- $$$metric[overload1]$$$metricQPaintDevice::PaintDeviceMetric --> <h3 class="fn"><a name="metric"></a><span class="type">int</span> QSvgGenerator::<span class="name">metric</span> ( <span class="type"><a href="qpaintdevice.html#PaintDeviceMetric-enum">QPaintDevice::PaintDeviceMetric</a></span> <i>metric</i> ) const<tt> [virtual protected]</tt></h3> <p>Reimplemented from <a href="qpaintdevice.html#metric">QPaintDevice::metric</a>().</p> <!-- @@@metric --> <!-- $$$paintEngine[overload1]$$$paintEngine --> <h3 class="fn"><a name="paintEngine"></a><span class="type"><a href="qpaintengine.html">QPaintEngine</a></span> * QSvgGenerator::<span class="name">paintEngine</span> () const<tt> [virtual protected]</tt></h3> <p>Reimplemented from <a href="qpaintdevice.html#paintEngine">QPaintDevice::paintEngine</a>().</p> <p>Returns the paint engine used to render graphics to be converted to SVG format information.</p> <!-- @@@paintEngine --> <!-- $$$viewBox[overload1]$$$viewBox --> <h3 class="fn"><a name="viewBox"></a><span class="type"><a href="qrect.html">QRect</a></span> QSvgGenerator::<span class="name">viewBox</span> () const</h3> <p>Returns <a href="qsvggenerator.html#viewBox-prop">viewBoxF</a>().toRect().</p> <p>This function was introduced in Qt 4.5.</p> <p><b>See also </b><a href="qsvggenerator.html#viewBox-prop">setViewBox</a>() and <a href="qsvggenerator.html#viewBox-prop">viewBoxF</a>().</p> <!-- @@@viewBox --> </div> </div> </div> </div> <div class="ft"> <span></span> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.</p> <br /> <p> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.</p> <p> Documentation sources may be obtained from <a href="http://www.qt-project.org"> www.qt-project.org</a>.</p> <br /> <p> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. <a title="Privacy Policy" href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p> </div> <script src="scripts/functions.js" type="text/javascript"></script> </body> </html>