<class name="QSvgWidget" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSvgWidget.html#QSvgWidget(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSvgWidget&lt;/tt&gt;&lt;/a&gt; class provides a widget that is used to display the contents of Scalable Vector Graphics (SVG) files.&lt;/p&gt;
&lt;p&gt;This class enables developers to display SVG drawings alongside standard widgets, and is used in much the same way as &lt;a href=&quot;%2E%2E/gui/QLabel.html&quot;&gt;&lt;tt&gt;QLabel&lt;/tt&gt;&lt;/a&gt; is used for displaying text and bitmap images.&lt;/p&gt;
&lt;p&gt;Since &lt;a href=&quot;QSvgWidget.html#QSvgWidget(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSvgWidget&lt;/tt&gt;&lt;/a&gt; is a subclass of &lt;a href=&quot;%2E%2E/gui/%2E%2E/gui/QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt;, SVG drawings are rendered using the properties of the display. More control can be exercised over the rendering process with the &lt;a href=&quot;QSvgRenderer.html&quot;&gt;&lt;tt&gt;QSvgRenderer&lt;/tt&gt;&lt;/a&gt; class, as this can be used to paint onto other paint devices, such as &lt;a href=&quot;%2E%2E/gui/QImage.html&quot;&gt;&lt;tt&gt;QImage&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;%2E%2E/opengl/QGLWidget.html&quot;&gt;&lt;tt&gt;QGLWidget&lt;/tt&gt;&lt;/a&gt;. The renderer used by the widget can be obtained with the &lt;a href=&quot;QSvgWidget.html#renderer()&quot;&gt;&lt;tt&gt;renderer&lt;/tt&gt;&lt;/a&gt; function.&lt;/p&gt;
&lt;p&gt;Each &lt;a href=&quot;QSvgWidget.html#QSvgWidget(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSvgWidget&lt;/tt&gt;&lt;/a&gt; can be constructed with the file name of a SVG file, or they can be constructed without a specific file to render and one can be supplied later. The &lt;a href=&quot;QSvgWidget.html#load(java.lang.String)&quot;&gt;&lt;tt&gt;load&lt;/tt&gt;&lt;/a&gt; functions provide two different ways to load an SVG file: they accept either the file name of an SVG file or a &lt;a href=&quot;%2E%2E/core/QByteArray.html&quot;&gt;&lt;tt&gt;QByteArray&lt;/tt&gt;&lt;/a&gt; containing the serialized XML representation of an SVG file.&lt;/p&gt;
&lt;p&gt;By default, the widget provides a size hint to reflect the size of the drawing that it displays. If no data has been loaded, the widget provides the default &lt;a href=&quot;%2E%2E/gui/%2E%2E/gui/QWidget.html#QWidget(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QWidget&lt;/tt&gt;&lt;/a&gt; size hint. Subclass this class and reimplement &lt;a href=&quot;QSvgWidget.html#sizeHint()&quot;&gt;&lt;tt&gt;sizeHint&lt;/tt&gt;&lt;/a&gt; if you need to customize this behavior.&lt;/p&gt;

@see &lt;a href=&quot;QSvgRenderer.html&quot;&gt;&lt;tt&gt;QSvgRenderer&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QtSvg Module&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/gui/QPicture.html&quot;&gt;&lt;tt&gt;QPicture&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;%2E%2E/gui/%2E%2E/gui/QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;%2E%2E/gui/QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;%2E%2E/gui/%2E%2E/gui/QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/gui/QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;%2E%2E/gui/%2E%2E/gui/QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QSvgWidget(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a new SVG display widget with the given &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QSvgWidget()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSvgWidget.html#QSvgWidget(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSvgWidget&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public QSvgWidget(java.lang.String file, com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a new SVG display widget with the given &lt;tt&gt;parent&lt;/tt&gt; and loads the contents of the specified &lt;tt&gt;file&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QSvgWidget(java.lang.String file)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSvgWidget.html#QSvgWidget(java.lang.String, com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSvgWidget&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;file&lt;/tt&gt;, 0). */"/>
    <method name="public final void load(com.trolltech.qt.core.QByteArray contents)" doc="/**
&lt;p&gt;Loads the specified SVG format &lt;tt&gt;contents&lt;/tt&gt; and updates the widget.&lt;/p&gt;
 */"/>
    <method name="public final void load(java.lang.String file)" doc="/**
&lt;p&gt;Loads the contents of the specified SVG &lt;tt&gt;file&lt;/tt&gt; and updates the widget.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.svg.QSvgRenderer renderer()" doc="/**
&lt;p&gt;Returns the renderer used to display the contents of the widget.&lt;/p&gt;
 */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
</class>
