<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qvideorenderercontrol.cpp --> <title>QVideoRendererControl Class | Qt Multimedia 5.9</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.9</td><td ><a href="qtmultimedia-index.html">Qt Multimedia</a></td><td ><a href="qtmultimedia-modules.html">C++ Classes</a></td><td >QVideoRendererControl</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</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="#public-functions">Public Functions</a></li> <li class="level1"><a href="#protected-functions">Protected Functions</a></li> <li class="level1"><a href="#macros">Macros</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">QVideoRendererControl Class</h1> <!-- $$$QVideoRendererControl-brief --> <p>The <a href="qvideorenderercontrol.html">QVideoRendererControl</a> class provides a media control for rendering video to a <a href="qabstractvideosurface.html">QAbstractVideoSurface</a>. <a href="#details">More...</a></p> <!-- @@@QVideoRendererControl --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QVideoRendererControl></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += multimedia</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qmediacontrol.html">QMediaControl</a></td></tr></table></div><ul> <li><a href="qvideorenderercontrol-members.html">List of all members, including inherited members</a></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="qvideorenderercontrol.html#dtor.QVideoRendererControl">~QVideoRendererControl</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qvideorenderercontrol.html#setSurface">setSurface</a></b>(QAbstractVideoSurface *<i>surface</i>) = 0</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual QAbstractVideoSurface *</td><td class="memItemRight bottomAlign"><b><a href="qvideorenderercontrol.html#surface">surface</a></b>() const = 0</td></tr> </table></div> <a name="protected-functions"></a> <h2 id="protected-functions">Protected Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvideorenderercontrol.html#QVideoRendererControl">QVideoRendererControl</a></b>(QObject *<i>parent</i> = Q_NULLPTR)</td></tr> </table></div> <a name="macros"></a> <h2 id="macros">Macros</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qvideorenderercontrol.html#QVideoRendererControl_iid">QVideoRendererControl_iid</a></b></td></tr> </table></div> <a name="details"></a> <!-- $$$QVideoRendererControl-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qvideorenderercontrol.html">QVideoRendererControl</a> class provides a media control for rendering video to a <a href="qabstractvideosurface.html">QAbstractVideoSurface</a>.</p> <p>Using the <a href="qvideorenderercontrol.html#surface">surface</a>() property of <a href="qvideorenderercontrol.html">QVideoRendererControl</a> a <a href="qabstractvideosurface.html">QAbstractVideoSurface</a> may be set as the video render target of a <a href="qmediaservice.html">QMediaService</a>.</p> <pre class="cpp"> <span class="type"><a href="qvideorenderercontrol.html#QVideoRendererControl">QVideoRendererControl</a></span> <span class="operator">*</span>rendererControl <span class="operator">=</span> mediaService<span class="operator">-</span><span class="operator">></span>requestControl<span class="operator"><</span><span class="type"><a href="qvideorenderercontrol.html#QVideoRendererControl">QVideoRendererControl</a></span> <span class="operator">*</span><span class="operator">></span>(); rendererControl<span class="operator">-</span><span class="operator">></span>setSurface(myVideoSurface); </pre> <p><a href="qvideorenderercontrol.html">QVideoRendererControl</a> is one of a number of possible video output controls.</p> <p>The interface name of <a href="qvideorenderercontrol.html">QVideoRendererControl</a> is <code>org.qt-project.qt.videorenderercontrol/5.0</code> as defined in <a href="qvideorenderercontrol.html#QVideoRendererControl_iid">QVideoRendererControl_iid</a>.</p> </div> <p><b>See also </b><a href="qmediaservice.html#requestControl-1">QMediaService::requestControl</a>() and <a href="qvideowidget.html">QVideoWidget</a>.</p> <!-- @@@QVideoRendererControl --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QVideoRendererControl[overload1]$$$QVideoRendererControlQObject* --> <h3 class="fn" id="QVideoRendererControl"><a name="QVideoRendererControl"></a><code>[protected] </code>QVideoRendererControl::<span class="name">QVideoRendererControl</span>(<span class="type">QObject</span> *<i>parent</i> = Q_NULLPTR)</h3> <p>Constructs a new video renderer media end point with the given <i>parent</i>.</p> <!-- @@@QVideoRendererControl --> <!-- $$$~QVideoRendererControl[overload1]$$$~QVideoRendererControl --> <h3 class="fn" id="dtor.QVideoRendererControl"><a name="dtor.QVideoRendererControl"></a>QVideoRendererControl::<span class="name">~QVideoRendererControl</span>()</h3> <p>Destroys a video renderer media end point.</p> <!-- @@@~QVideoRendererControl --> <!-- $$$setSurface[overload1]$$$setSurfaceQAbstractVideoSurface* --> <h3 class="fn" id="setSurface"><a name="setSurface"></a><code>[pure virtual] </code><span class="type">void</span> QVideoRendererControl::<span class="name">setSurface</span>(<span class="type"><a href="qabstractvideosurface.html">QAbstractVideoSurface</a></span> *<i>surface</i>)</h3> <p>Sets the <i>surface</i> a video producer renders to.</p> <p><b>See also </b><a href="qvideorenderercontrol.html#surface">surface</a>().</p> <!-- @@@setSurface --> <!-- $$$surface[overload1]$$$surface --> <h3 class="fn" id="surface"><a name="surface"></a><code>[pure virtual] </code><span class="type"><a href="qabstractvideosurface.html">QAbstractVideoSurface</a></span> *QVideoRendererControl::<span class="name">surface</span>() const</h3> <p>Returns the surface a video producer renders to.</p> <p><b>See also </b><a href="qvideorenderercontrol.html#setSurface">setSurface</a>().</p> <!-- @@@surface --> </div> <div class="macros"> <h2>Macro Documentation</h2> <!-- $$$QVideoRendererControl_iid[overload1]$$$QVideoRendererControl_iid --> <h3 class="fn" id="QVideoRendererControl_iid"><a name="QVideoRendererControl_iid"></a><span class="name">QVideoRendererControl_iid</span></h3> <p><code>org.qt-project.qt.videorenderercontrol/5.0</code></p> <p>Defines the interface name of the <a href="qvideorenderercontrol.html">QVideoRendererControl</a> class.</p> <!-- @@@QVideoRendererControl_iid --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2017 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>