<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Qt3DWindow Class | Qt 3D 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="qt3d-index.html">Qt 3D</a></td><td ><a href="qt3d-cpp.html">C++ Classes</a></td><td >Qt3DWindow</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qt3d-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="#public-functions">Public Functions</a></li> <li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</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">Qt3DWindow Class</h1> <span class="small-subtitle">(<a href="qt3dextras-qt3dwindow.html">Qt3DExtras::Qt3DWindow</a>)<br/></span> <ul> <li><a href="qt3dextras-qt3dwindow-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"> Qt3DRender::QFrameGraphNode *</td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#activeFrameGraph">activeFrameGraph</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Qt3DExtras::QForwardRenderer *</td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#defaultFrameGraph">defaultFrameGraph</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#registerAspect">registerAspect</a></b>(Qt3DCore::QAbstractAspect *<i>aspect</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#registerAspect-1">registerAspect</a></b>(const QString &<i>name</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> Qt3DRender::QRenderSettings *</td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#renderSettings">renderSettings</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#setActiveFrameGraph">setActiveFrameGraph</a></b>(Qt3DRender::QFrameGraphNode *<i>activeFrameGraph</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#setRootEntity">setRootEntity</a></b>(Qt3DCore::QEntity *<i>root</i>)</td></tr> </table></div> <a name="reimplemented-protected-functions"></a> <h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#event">event</a></b>(QEvent *<i>e</i>) override</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#resizeEvent">resizeEvent</a></b>(<i>QResizeEvent *</i>) override</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qt3dextras-qt3dwindow.html#showEvent">showEvent</a></b>(QShowEvent *<i>e</i>) override</td></tr> </table></div> <a name="details"></a> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$activeFrameGraph[overload1]$$$activeFrameGraph --> <h3 class="fn" id="activeFrameGraph"><a name="activeFrameGraph"></a><span class="type"><a href="qt3drender-qframegraphnode.html">Qt3DRender::QFrameGraphNode</a></span> *Qt3DWindow::<span class="name">activeFrameGraph</span>() const</h3> <p>Returns the node of the active frame graph.</p> <p><b>See also </b><a href="qt3dextras-qt3dwindow.html#setActiveFrameGraph">setActiveFrameGraph</a>().</p> <!-- @@@activeFrameGraph --> <!-- $$$defaultFrameGraph[overload1]$$$defaultFrameGraph --> <h3 class="fn" id="defaultFrameGraph"><a name="defaultFrameGraph"></a><span class="type"><a href="qt3dextras-qforwardrenderer.html">Qt3DExtras::QForwardRenderer</a></span> *Qt3DWindow::<span class="name">defaultFrameGraph</span>() const</h3> <p>Returns the node of the default framegraph</p> <!-- @@@defaultFrameGraph --> <!-- $$$event[overload1]$$$eventQEvent* --> <h3 class="fn" id="event"><a name="event"></a><code>[override virtual protected] </code><span class="type">bool</span> Qt3DWindow::<span class="name">event</span>(<span class="type">QEvent</span> *<i>e</i>)</h3> <p>Requests renderer to redraw if we are using OnDemand render policy.</p> <!-- @@@event --> <!-- $$$registerAspect[overload1]$$$registerAspectQt3DCore::QAbstractAspect* --> <h3 class="fn" id="registerAspect"><a name="registerAspect"></a><span class="type">void</span> Qt3DWindow::<span class="name">registerAspect</span>(<span class="type"><a href="qt3dcore-qabstractaspect.html">Qt3DCore::QAbstractAspect</a></span> *<i>aspect</i>)</h3> <p>Registers the specified <i>aspect</i>.</p> <!-- @@@registerAspect --> <!-- $$$registerAspect$$$registerAspectconstQString& --> <h3 class="fn" id="registerAspect-1"><a name="registerAspect-1"></a><span class="type">void</span> Qt3DWindow::<span class="name">registerAspect</span>(const <span class="type">QString</span> &<i>name</i>)</h3> <p>Registers the specified aspect <i>name</i>.</p> <!-- @@@registerAspect --> <!-- $$$renderSettings[overload1]$$$renderSettings --> <h3 class="fn" id="renderSettings"><a name="renderSettings"></a><span class="type"><a href="qt3drender-qrendersettings.html">Qt3DRender::QRenderSettings</a></span> *Qt3DWindow::<span class="name">renderSettings</span>() const</h3> <p>Returns the render settings of the 3D Window.</p> <!-- @@@renderSettings --> <!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* --> <h3 class="fn" id="resizeEvent"><a name="resizeEvent"></a><code>[override virtual protected] </code><span class="type">void</span> Qt3DWindow::<span class="name">resizeEvent</span>(<i>QResizeEvent *</i>)</h3> <p>Resets the aspect ratio of the 3D window.</p> <!-- @@@resizeEvent --> <!-- $$$setActiveFrameGraph[overload1]$$$setActiveFrameGraphQt3DRender::QFrameGraphNode* --> <h3 class="fn" id="setActiveFrameGraph"><a name="setActiveFrameGraph"></a><span class="type">void</span> Qt3DWindow::<span class="name">setActiveFrameGraph</span>(<span class="type"><a href="qt3drender-qframegraphnode.html">Qt3DRender::QFrameGraphNode</a></span> *<i>activeFrameGraph</i>)</h3> <p>Activates the specified <i>activeFrameGraph</i>.</p> <p><b>See also </b><a href="qt3dextras-qt3dwindow.html#activeFrameGraph">activeFrameGraph</a>().</p> <!-- @@@setActiveFrameGraph --> <!-- $$$setRootEntity[overload1]$$$setRootEntityQt3DCore::QEntity* --> <h3 class="fn" id="setRootEntity"><a name="setRootEntity"></a><span class="type">void</span> Qt3DWindow::<span class="name">setRootEntity</span>(<span class="type"><a href="qt3dcore-qentity.html">Qt3DCore::QEntity</a></span> *<i>root</i>)</h3> <p>Sets the specified <i>root</i> entity of the scene.</p> <!-- @@@setRootEntity --> <!-- $$$showEvent[overload1]$$$showEventQShowEvent* --> <h3 class="fn" id="showEvent"><a name="showEvent"></a><code>[override virtual protected] </code><span class="type">void</span> Qt3DWindow::<span class="name">showEvent</span>(<span class="type">QShowEvent</span> *<i>e</i>)</h3> <p>Manages the display events specified in <i>e</i>.</p> <!-- @@@showEvent --> </div> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</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>