Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > c936229ef0138f42857f36beadbeda30 > files > 603

qt3d5-doc-5.12.2-2.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" />
<!-- widgets-scene3d.qdoc -->
  <title>Qt 3D: Scene3D QML with Widgets Example | Qt 3D 5.12.2</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 >Qt 3D: Scene3D QML with Widgets Example</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qt3d-index.html">Qt 5.12.2 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="#running-the-example">Running the Example</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Qt 3D: Scene3D QML with Widgets Example</h1>
<span class="subtitle"></span>
<!-- $$$widgets-scene3d-brief -->
<p>A QWidget-based application with a QML scene containing a 3D scene.</p>
<!-- @@@widgets-scene3d -->
<!-- $$$widgets-scene3d-description -->
<div class="descr"> <a name="details"></a>
<p class="centerAlign"><img src="images/widgets-scene3d.png" alt="" /></p><p><i>widgets-scene3D</i> demonstrates visualizing a 3D scene from a QWidget-based application using QQuickWidget.</p>
<p>The actual 3D scene is the same as in the <i>scene3d</i> example.</p>
<p>This approach is different from the one based on QWidget::createWindowContainer() demonstrated in <i>basicshapes-cpp</i> because it does not create a native window for the Qt 3D content. Rather, it uses QQuickWidget, a genuine QWidget subclass to compose the Qt Quick and Qt 3D content together with the traditional widgets.</p>
<p><b>Note: </b>Be aware of the performance implications. While this approach is very flexible in the sense that it allows mixing QML and Qt 3D with widgets without clipping or stacking issues, using <a href="qml-qtquick-scene3d-scene3d.html">Scene3D</a> in a QQuickWidget involves rendering to offscreen render targets (via framebuffer objects) twice. This is not always desirable for more complex scenes. For those the native window based approach shown in <i>basicshapes-cpp</i> will likely be a better choice.</p><a name="running-the-example"></a>
<h2 id="running-the-example">Running the Example</h2>
<p>To run the example from Qt Creator, open the <b>Welcome</b> mode and select the example from <b>Examples</b>. For more information, visit Building and Running an Example.</p>
<p>Files:</p>
<ul>
<li><a href="qt3d-widgets-scene3d-main-cpp.html">widgets-scene3d/main.cpp</a></li>
<li><a href="qt3d-widgets-scene3d-widgets-scene3d-pro.html">widgets-scene3d/widgets-scene3d.pro</a></li>
<li><a href="qt3d-widgets-scene3d-widgets-scene3d-qrc.html">widgets-scene3d/widgets-scene3d.qrc</a></li>
</ul>
</div>
<!-- @@@widgets-scene3d -->
        </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>