<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Solved] How to enable the accumulation buffer at QGLWidget?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm trying to use the accumulation buffer in QGLWidget class, and wrote the following code:</p>
<p dir="auto">@<br />
MainWindow::MainWindow(QWidget *parent) :<br />
QMainWindow(parent),<br />
ui(new Ui::MainWindow)<br />
{<br />
ui-&gt;setupUi(this);</p>
<pre><code>QGLFormat format = QGLFormat::defaultFormat();
format.setAccum(true);
format.setAccumBufferSize(24);
QGLFormat::setDefaultFormat(format);
QGLWidget* testWidget = new QGLWidget(this);
ui-&gt;mainLayout-&gt;addWidget(testWidget);

assert(testWidget-&gt;format().accum());
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">The problem is, this code always fails at the assertion test. This means the instantiated QGLWidget does not enable the accumulation buffer feature.</p>
<p dir="auto">Am I doing something wrong? Any suggestions? Hope someone will help me.</p>
<p dir="auto">Qt Creator 3.0.1<br />
Qt 5.2.1 (Clang 5.0 (Apple), 64 bit)<br />
MacBook Air (OS X 10.8.5)</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.qt.io/topic/45832/solved-how-to-enable-the-accumulation-buffer-at-qglwidget</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 15:33:53 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/45832.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Sep 2014 07:27:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] How to enable the accumulation buffer at QGLWidget? on Fri, 12 Sep 2014 09:19:18 GMT]]></title><description><![CDATA[<p dir="auto">Thank you mtrch, I didn't know that the accumulation buffer has been deprecated. That's why my code doesn't work.</p>
]]></description><link>https://forum.qt.io/post/243557</link><guid isPermaLink="true">https://forum.qt.io/post/243557</guid><dc:creator><![CDATA[koyama]]></dc:creator><pubDate>Fri, 12 Sep 2014 09:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] How to enable the accumulation buffer at QGLWidget? on Thu, 11 Sep 2014 14:34:17 GMT]]></title><description><![CDATA[<p dir="auto">Your code looks fine. Maybe your graphic driver dont support accumulation buffer - it is legacy feature. Some drivers support it for backward compatibility, some not. Your can check supported OpenGL versions, formats and extensions with utilities like "GLView":<a href="http://www.realtech-vr.com/glview/" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.realtech-vr.com/glview/</a></p>
]]></description><link>https://forum.qt.io/post/243451</link><guid isPermaLink="true">https://forum.qt.io/post/243451</guid><dc:creator><![CDATA[mtrch]]></dc:creator><pubDate>Thu, 11 Sep 2014 14:34:17 GMT</pubDate></item></channel></rss>