Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > cc7fe9e394ef5d6038f38d6809aee36c > files > 21

qtsvg5-doc-5.12.6-1.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qsvgrenderer.cpp -->
  <title>QSvgRenderer Class | Qt SVG 5.12.6</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.12</td><td ><a href="qtsvg-index.html">Qt SVG</a></td><td ><a href="qtsvg-module.html">C++ Classes</a></td><td >QSvgRenderer</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtsvg-index.html">Qt 5.12.6 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QSvgRenderer Class</h1>
<!-- $$$QSvgRenderer-brief -->
<p>The <a href="qsvgrenderer.html">QSvgRenderer</a> class is used to draw the contents of SVG files onto paint devices. <a href="#details">More...</a></p>
<!-- @@@QSvgRenderer -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QSvgRenderer&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += svg</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.1</td></tr></table></div><ul>
<li><a href="qsvgrenderer-members.html">List of all members, including inherited members</a></li>
</ul>
<p><b>Note:</b> All functions in this class are reentrant.</p>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qsvgrenderer.html#framesPerSecond-prop">framesPerSecond</a></b> : int</li>
<li class="fn"><b><a href="qsvgrenderer.html#viewBox-prop">viewBox</a></b> : QRectF</li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#QSvgRenderer">QSvgRenderer</a></b>(QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#QSvgRenderer-1">QSvgRenderer</a></b>(const QString &amp;<i>filename</i>, QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#QSvgRenderer-2">QSvgRenderer</a></b>(const QByteArray &amp;<i>contents</i>, QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#QSvgRenderer-3">QSvgRenderer</a></b>(QXmlStreamReader *<i>contents</i>, QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#dtor.QSvgRenderer">~QSvgRenderer</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#animated">animated</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#boundsOnElement">boundsOnElement</a></b>(const QString &amp;<i>id</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#defaultSize">defaultSize</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#elementExists">elementExists</a></b>(const QString &amp;<i>id</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#framesPerSecond-prop">framesPerSecond</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#isValid">isValid</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMatrix </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#matrixForElement">matrixForElement</a></b>(const QString &amp;<i>id</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#framesPerSecond-prop">setFramesPerSecond</a></b>(int <i>num</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#viewBox-prop">setViewBox</a></b>(const QRect &amp;<i>viewbox</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#viewBox-prop">setViewBox</a></b>(const QRectF &amp;<i>viewbox</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRect </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#viewBox">viewBox</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#viewBox-prop">viewBoxF</a></b>() const</td></tr>
</table></div>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#load">load</a></b>(const QString &amp;<i>filename</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#load-1">load</a></b>(const QByteArray &amp;<i>contents</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#load-2">load</a></b>(QXmlStreamReader *<i>contents</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#render">render</a></b>(QPainter *<i>painter</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#render-1">render</a></b>(QPainter *<i>painter</i>, const QRectF &amp;<i>bounds</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#render-2">render</a></b>(QPainter *<i>painter</i>, const QString &amp;<i>elementId</i>, const QRectF &amp;<i>bounds</i> = QRectF())</td></tr>
</table></div>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#repaintNeeded">repaintNeeded</a></b>()</td></tr>
</table></div>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qsvgrenderer.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QSvgRenderer-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qsvgrenderer.html">QSvgRenderer</a> class is used to draw the contents of SVG files onto paint devices.</p>
<p>Using <a href="qsvgrenderer.html">QSvgRenderer</a>, Scalable Vector Graphics (SVG) can be rendered onto any QPaintDevice subclass, including QWidget, QImage, and QGLWidget.</p>
<p><a href="qsvgrenderer.html">QSvgRenderer</a> provides an API that supports basic features of SVG rendering, such as loading and rendering of static drawings, and more interactive features like animation. Since the rendering is performed using QPainter, SVG drawings can be rendered on any subclass of QPaintDevice.</p>
<p>SVG drawings are either loaded when an <a href="qsvgrenderer.html">QSvgRenderer</a> is constructed, or loaded later using the <a href="qsvgrenderer.html#load">load</a>() functions. Data is either supplied directly as serialized XML, or indirectly using a file name. If a valid file has been loaded, either when the renderer is constructed or at some later time, <a href="qsvgrenderer.html#isValid">isValid</a>() returns true; otherwise it returns false. <a href="qsvgrenderer.html">QSvgRenderer</a> provides the <a href="qsvgrenderer.html#render">render</a>() slot to render the current document, or the current frame of an animated document, using a given painter.</p>
<p>The <a href="qsvgrenderer.html#defaultSize">defaultSize</a>() function provides information about the amount of space that is required to render the currently loaded SVG file. This is useful for paint devices, such as QWidget, that often need to supply a size hint to their parent layout. The default size of a drawing may differ from its visible area, found using the <a href="qsvgrenderer.html#viewBox-prop">viewBox</a> property.</p>
<p>Animated SVG drawings are supported, and can be controlled with a simple collection of functions and properties:</p>
<ul>
<li>The <a href="qsvgrenderer.html#animated">animated</a>() function indicates whether a drawing contains animation information.</li>
<li>The <a href="qsvgrenderer.html#framesPerSecond-prop">framesPerSecond</a> property contains the rate at which the animation plays.</li>
</ul>
<p>Finally, the <a href="qsvgrenderer.html">QSvgRenderer</a> class provides the <a href="qsvgrenderer.html#repaintNeeded">repaintNeeded</a>() signal which is emitted whenever the rendering of the document needs to be updated.</p>
</div>
<p><b>See also </b><a href="qsvgwidget.html">QSvgWidget</a>, <a href="qtsvg-module.html">Qt SVG C++ Classes</a>, SVG Viewer Example, and QPicture.</p>
<!-- @@@QSvgRenderer -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$framesPerSecond-prop$$$framesPerSecond$$$setFramesPerSecondint -->
<h3 class="fn" id="framesPerSecond-prop"><a name="framesPerSecond-prop"></a><span class="name">framesPerSecond</span> : <span class="type">int</span></h3>
<p>This property holds the number of frames per second to be shown</p>
<p>The number of frames per second is 0 if the current document is not animated.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>framesPerSecond</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFramesPerSecond</b></span>(int <i>num</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qsvgrenderer.html#animated">animated</a>().</p>
<!-- @@@framesPerSecond -->
<!-- $$$viewBox-prop$$$viewBoxF$$$setViewBoxconstQRect&$$$setViewBoxconstQRectF& -->
<h3 class="fn" id="viewBox-prop"><a name="viewBox-prop"></a><span class="name">viewBox</span> : <span class="type">QRectF</span></h3>
<p>This property holds the rectangle specifying the visible area of the document in logical coordinates</p>
<p>This property was introduced in  Qt 4.2.</p>
<p><b>Access functions:</b></p>
<div class="table"><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 &amp;<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 &amp;<i>viewbox</i>)</td></tr>
</table></div>
<!-- @@@viewBox -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QSvgRenderer[overload1]$$$QSvgRendererQObject* -->
<h3 class="fn" id="QSvgRenderer"><a name="QSvgRenderer"></a>QSvgRenderer::<span class="name">QSvgRenderer</span>(<span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a new renderer with the given <i>parent</i>.</p>
<!-- @@@QSvgRenderer -->
<!-- $$$QSvgRenderer$$$QSvgRendererconstQString&QObject* -->
<h3 class="fn" id="QSvgRenderer-1"><a name="QSvgRenderer-1"></a>QSvgRenderer::<span class="name">QSvgRenderer</span>(const <span class="type">QString</span> &amp;<i>filename</i>, <span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a new renderer with the given <i>parent</i> and loads the contents of the SVG file with the specified <i>filename</i>.</p>
<!-- @@@QSvgRenderer -->
<!-- $$$QSvgRenderer$$$QSvgRendererconstQByteArray&QObject* -->
<h3 class="fn" id="QSvgRenderer-2"><a name="QSvgRenderer-2"></a>QSvgRenderer::<span class="name">QSvgRenderer</span>(const <span class="type">QByteArray</span> &amp;<i>contents</i>, <span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a new renderer with the given <i>parent</i> and loads the SVG data from the byte array specified by <i>contents</i>.</p>
<!-- @@@QSvgRenderer -->
<!-- $$$QSvgRenderer$$$QSvgRendererQXmlStreamReader*QObject* -->
<h3 class="fn" id="QSvgRenderer-3"><a name="QSvgRenderer-3"></a>QSvgRenderer::<span class="name">QSvgRenderer</span>(<span class="type">QXmlStreamReader</span> *<i>contents</i>, <span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
<p>Constructs a new renderer with the given <i>parent</i> and loads the SVG data using the stream reader specified by <i>contents</i>.</p>
<p>This function was introduced in  Qt 4.5.</p>
<!-- @@@QSvgRenderer -->
<!-- $$$~QSvgRenderer[overload1]$$$~QSvgRenderer -->
<h3 class="fn" id="dtor.QSvgRenderer"><a name="dtor.QSvgRenderer"></a><code>[virtual] </code>QSvgRenderer::<span class="name">~QSvgRenderer</span>()</h3>
<p>Destroys the renderer.</p>
<!-- @@@~QSvgRenderer -->
<!-- $$$animated[overload1]$$$animated -->
<h3 class="fn" id="animated"><a name="animated"></a><span class="type">bool</span> QSvgRenderer::<span class="name">animated</span>() const</h3>
<p>Returns true if the current document contains animated elements; otherwise returns false.</p>
<p><b>See also </b><a href="qsvgrenderer.html#framesPerSecond-prop">framesPerSecond</a>().</p>
<!-- @@@animated -->
<!-- $$$boundsOnElement[overload1]$$$boundsOnElementconstQString& -->
<h3 class="fn" id="boundsOnElement"><a name="boundsOnElement"></a><span class="type">QRectF</span> QSvgRenderer::<span class="name">boundsOnElement</span>(const <span class="type">QString</span> &amp;<i>id</i>) const</h3>
<p>Returns bounding rectangle of the item with the given <i>id</i>. The transformation matrix of parent elements is not affecting the bounds of the element.</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qsvgrenderer.html#matrixForElement">matrixForElement</a>().</p>
<!-- @@@boundsOnElement -->
<!-- $$$defaultSize[overload1]$$$defaultSize -->
<h3 class="fn" id="defaultSize"><a name="defaultSize"></a><span class="type">QSize</span> QSvgRenderer::<span class="name">defaultSize</span>() const</h3>
<p>Returns the default size of the document contents.</p>
<!-- @@@defaultSize -->
<!-- $$$elementExists[overload1]$$$elementExistsconstQString& -->
<h3 class="fn" id="elementExists"><a name="elementExists"></a><span class="type">bool</span> QSvgRenderer::<span class="name">elementExists</span>(const <span class="type">QString</span> &amp;<i>id</i>) const</h3>
<p>Returns true if the element with the given <i>id</i> exists in the currently parsed SVG file and is a renderable element.</p>
<p>Note: this method returns true only for elements that can be rendered. Which implies that elements that are considered part of the fill/stroke style properties, e.g&#x2e; radialGradients even tough marked with &quot;id&quot; attributes will not be found by this method.</p>
<p>This function was introduced in  Qt 4.2.</p>
<!-- @@@elementExists -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn" id="isValid"><a name="isValid"></a><span class="type">bool</span> QSvgRenderer::<span class="name">isValid</span>() const</h3>
<p>Returns true if there is a valid current document; otherwise returns false.</p>
<!-- @@@isValid -->
<!-- $$$load[overload1]$$$loadconstQString& -->
<h3 class="fn" id="load"><a name="load"></a><code>[slot] </code><span class="type">bool</span> QSvgRenderer::<span class="name">load</span>(const <span class="type">QString</span> &amp;<i>filename</i>)</h3>
<p>Loads the SVG file specified by <i>filename</i>, returning true if the content was successfully parsed; otherwise returns false.</p>
<!-- @@@load -->
<!-- $$$load$$$loadconstQByteArray& -->
<h3 class="fn" id="load-1"><a name="load-1"></a><code>[slot] </code><span class="type">bool</span> QSvgRenderer::<span class="name">load</span>(const <span class="type">QByteArray</span> &amp;<i>contents</i>)</h3>
<p>Loads the specified SVG format <i>contents</i>, returning true if the content was successfully parsed; otherwise returns false.</p>
<!-- @@@load -->
<!-- $$$load$$$loadQXmlStreamReader* -->
<h3 class="fn" id="load-2"><a name="load-2"></a><code>[slot] </code><span class="type">bool</span> QSvgRenderer::<span class="name">load</span>(<span class="type">QXmlStreamReader</span> *<i>contents</i>)</h3>
<p>Loads the specified SVG in <i>contents</i>, returning true if the content was successfully parsed; otherwise returns false.</p>
<p>The reader will be used from where it currently is positioned. If <i>contents</i> is <code>null</code>, behavior is undefined.</p>
<p>This function was introduced in  Qt 4.5.</p>
<!-- @@@load -->
<!-- $$$matrixForElement[overload1]$$$matrixForElementconstQString& -->
<h3 class="fn" id="matrixForElement"><a name="matrixForElement"></a><span class="type">QMatrix</span> QSvgRenderer::<span class="name">matrixForElement</span>(const <span class="type">QString</span> &amp;<i>id</i>) const</h3>
<p>Returns the transformation matrix for the element with the given <i>id</i>. The matrix is a product of the transformation of the element's parents. The transformation of the element itself is not included.</p>
<p>To find the bounding rectangle of the element in logical coordinates, you can apply the matrix on the rectangle returned from <a href="qsvgrenderer.html#boundsOnElement">boundsOnElement</a>().</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qsvgrenderer.html#boundsOnElement">boundsOnElement</a>().</p>
<!-- @@@matrixForElement -->
<!-- $$$render[overload1]$$$renderQPainter* -->
<h3 class="fn" id="render"><a name="render"></a><code>[slot] </code><span class="type">void</span> QSvgRenderer::<span class="name">render</span>(<span class="type">QPainter</span> *<i>painter</i>)</h3>
<p>Renders the current document, or the current frame of an animated document, using the given <i>painter</i>.</p>
<!-- @@@render -->
<!-- $$$render$$$renderQPainter*constQRectF& -->
<h3 class="fn" id="render-1"><a name="render-1"></a><code>[slot] </code><span class="type">void</span> QSvgRenderer::<span class="name">render</span>(<span class="type">QPainter</span> *<i>painter</i>, const <span class="type">QRectF</span> &amp;<i>bounds</i>)</h3>
<p>Renders the current document, or the current frame of an animated document, using the given <i>painter</i> on the specified <i>bounds</i> within the painter. If the bounding rectangle is not specified the SVG file is mapped to the whole paint device.</p>
<!-- @@@render -->
<!-- $$$render$$$renderQPainter*constQString&constQRectF& -->
<h3 class="fn" id="render-2"><a name="render-2"></a><code>[slot] </code><span class="type">void</span> QSvgRenderer::<span class="name">render</span>(<span class="type">QPainter</span> *<i>painter</i>, const <span class="type">QString</span> &amp;<i>elementId</i>, const <span class="type">QRectF</span> &amp;<i>bounds</i> = QRectF())</h3>
<p>Renders the given element with <i>elementId</i> using the given <i>painter</i> on the specified <i>bounds</i>. If the bounding rectangle is not specified the SVG element is mapped to the whole paint device.</p>
<!-- @@@render -->
<!-- $$$repaintNeeded[overload1]$$$repaintNeeded -->
<h3 class="fn" id="repaintNeeded"><a name="repaintNeeded"></a><code>[signal] </code><span class="type">void</span> QSvgRenderer::<span class="name">repaintNeeded</span>()</h3>
<p>This signal is emitted whenever the rendering of the document needs to be updated, usually for the purposes of animation.</p>
<!-- @@@repaintNeeded -->
<!-- $$$viewBox[overload1]$$$viewBox -->
<h3 class="fn" id="viewBox"><a name="viewBox"></a><span class="type">QRect</span> QSvgRenderer::<span class="name">viewBox</span>() const</h3>
<p>Returns <a href="qsvgrenderer.html#viewBox-prop">viewBoxF</a>().toRect().</p>
<p><b>See also </b><a href="qsvgrenderer.html#viewBox-prop">setViewBox</a>() and <a href="qsvgrenderer.html#viewBox-prop">viewBoxF</a>().</p>
<!-- @@@viewBox -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    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.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>