Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 2369

qtbase5-doc-5.12.6-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" />
<!-- qgl.cpp -->
  <title>Obsolete Members for QGLWidget | Qt OpenGL</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="qtopengl-index.html">Qt OpenGL</a></td><td ><a href="qtopengl-module.html">C++ Classes</a></td><td >QGLWidget</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtopengl-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="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Obsolete Members for QGLWidget</h1>
<p><b>The following members of class <a href="qglwidget.html">QGLWidget</a> are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p>
<h2>Properties</h2>
<ul>
<li class="fn"><code>(obsolete) </code><b><a href="../qtwidgets/qwidget-obsolete.html#windowIconText-prop">windowIconText</a></b> : const </li>
</ul>
<h2>Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="../qtcore/qobject-obsolete.html#dumpObjectInfo-1">dumpObjectInfo</a></b>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="../qtcore/qobject-obsolete.html#dumpObjectTree-1">dumpObjectTree</a></b>()</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="../qtwidgets/qwidget-obsolete.html#isEnabledToTLW">isEnabledToTLW</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="../qtwidgets/qwidget-obsolete.html#isTopLevel">isTopLevel</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qglwidget-obsolete.html#setContext">setContext</a></b>(QGLContext *<i>context</i>, const QGLContext *<i>shareContext</i> = nullptr, bool <i>deleteOldContext</i> = true)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qglwidget-obsolete.html#setFormat">setFormat</a></b>(const QGLFormat &amp;<i>format</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="../qtwidgets/qwidget-obsolete.html#topLevelWidget">topLevelWidget</a></b>() const</td></tr>
</table></div>
<h2>Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code></td><td class="memItemRight bottomAlign"><b><a href="../qtwidgets/qwidget-obsolete.html#windowIconTextChanged">windowIconTextChanged</a></b>(const QString &amp;<i>iconText</i>)</td></tr>
</table></div>
<h2>Member Function Documentation</h2>
<!-- $$$setContext[overload1]$$$setContextQGLContext*constQGLContext*bool -->
<h3 class="fn" id="setContext"><a name="setContext"></a><span class="type">void</span> QGLWidget::<span class="name">setContext</span>(<span class="type"><a href="qglcontext.html">QGLContext</a></span> *<i>context</i>, const <span class="type"><a href="qglcontext.html">QGLContext</a></span> *<i>shareContext</i> = nullptr, <span class="type">bool</span> <i>deleteOldContext</i> = true)</h3>
<p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p>
<p>Sets a new context for this widget. The <a href="qglcontext.html">QGLContext</a> <i>context</i> must be created using <i>new</i>. <a href="qglwidget.html">QGLWidget</a> will delete <i>context</i> when another context is set or when the widget is destroyed.</p>
<p>If <i>context</i> is invalid, <a href="qglcontext.html#create">QGLContext::create</a>() is performed on it. The <a href="qglwidget.html#initializeGL">initializeGL</a>() function will then be executed for the new context before the first <a href="qglwidget.html#resizeGL">resizeGL</a>() or <a href="qglwidget.html#paintGL">paintGL</a>().</p>
<p>If <i>context</i> is invalid, this method will try to keep display list and texture object sharing in effect, or (if <i>shareContext</i> points to a valid context) start display list and texture object sharing with that context, but sharing might be impossible if the two contexts have different <a href="qglwidget.html#format">formats</a>. Use <a href="qglwidget.html#isSharing">isSharing</a>() to see whether sharing is in effect.</p>
<p>If <i>deleteOldContext</i> is true (the default), the existing context will be deleted. You may use false here if you have kept a pointer to the old context (as returned by <a href="qglwidget.html#context">context</a>()), and want to restore that context later.</p>
<p><b>Note: </b>This function is obsolete and should no longer be used. If you were using it to recreate the context for a <a href="qglwidget.html">QGLWidget</a>, you should instead create a new <a href="qglwidget.html">QGLWidget</a> or use the <a href="../qtgui/qopenglcontext.html">QOpenGLContext</a> API in conjunction with <a href="../qtgui/qwindow.html">QWindow</a>. There is currently no officially supported way to substitute <a href="qglwidget.html">QGLWidget</a>'s context with your own implementation of <a href="qglcontext.html">QGLContext</a>.</p><p><b>See also </b><a href="qglwidget.html#context">context</a>() and <a href="qglwidget.html#isSharing">isSharing</a>().</p>
<!-- @@@setContext -->
<!-- $$$setFormat[overload1]$$$setFormatconstQGLFormat& -->
<h3 class="fn" id="setFormat"><a name="setFormat"></a><span class="type">void</span> QGLWidget::<span class="name">setFormat</span>(const <span class="type"><a href="qglformat.html">QGLFormat</a></span> &amp;<i>format</i>)</h3>
<p>This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.</p>
<p>Sets a new format for this widget.</p>
<p>If the underlying OpenGL/Window system cannot satisfy all the features requested in <i>format</i>, the nearest subset of features will be used. After creation, the <a href="qglwidget.html#format">format</a>() method will return the actual rendering context format obtained.</p>
<p>The widget will be assigned a new <a href="qglcontext.html">QGLContext</a>, and the <a href="qglwidget.html#initializeGL">initializeGL</a>() function will be executed for this new context before the first <a href="qglwidget.html#resizeGL">resizeGL</a>() or <a href="qglwidget.html#paintGL">paintGL</a>().</p>
<p>This method will try to keep display list and texture object sharing in effect with other <a href="qglwidget.html">QGLWidget</a> objects, but changing the format might make sharing impossible. Use <a href="qglwidget.html#isSharing">isSharing</a>() to see if sharing is still in effect.</p>
<p><b>See also </b><a href="qglwidget.html#format">format</a>(), <a href="qglwidget.html#isSharing">isSharing</a>(), and <a href="qglwidget.html#isValid">isValid</a>().</p>
<!-- @@@setFormat -->
        </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>