<?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[OpenGLWidget not swapping?]]></title><description><![CDATA[<p dir="auto">I have an OpenGLWidget which (in paintGL) I'm clearing to red (as a test). It's set as the central widget in a QMainWindow. If I grabFramebuffer and dump than into a file I get a red image, as expected, however the OpenGLWidget appears black in the main window. This seems like a swapping issue but I read that with OpenGLWidget there is no need for a manual swap.</p>
<p dir="auto">(This of course is not a simple program. And it is on Mac, the code works fine on Windows. Qt version 5.8)</p>
<p dir="auto">Any ideas what can I do to troubleshoot this issue?</p>
]]></description><link>https://forum.qt.io/topic/80369/openglwidget-not-swapping</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 05:22:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/80369.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Jun 2017 23:57:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenGLWidget not swapping? on Wed, 21 Jun 2017 18:29:26 GMT]]></title><description><![CDATA[<p dir="auto">Maybe there is a problem of context when you generate or modify the fbo while using Mac, where the Qt implementation may change context in one OS and not in the other. Another possibility is that the format may not be supported in Mac. There are OpenGL methods (and those from Qt) to enable you to perform context management, maybe just enforcing that you are handling a specific context in your functions will do the job (the makeCurrent stuff)</p>
]]></description><link>https://forum.qt.io/post/400941</link><guid isPermaLink="true">https://forum.qt.io/post/400941</guid><dc:creator><![CDATA[VitorAMJ]]></dc:creator><pubDate>Wed, 21 Jun 2017 18:29:26 GMT</pubDate></item><item><title><![CDATA[Reply to OpenGLWidget not swapping? on Fri, 16 Jun 2017 17:56:07 GMT]]></title><description><![CDATA[<p dir="auto">I switched to using QGLWidget and now it works. Any idea why it isn't working with QOpenGLWidget?</p>
]]></description><link>https://forum.qt.io/post/399928</link><guid isPermaLink="true">https://forum.qt.io/post/399928</guid><dc:creator><![CDATA[Zajo]]></dc:creator><pubDate>Fri, 16 Jun 2017 17:56:07 GMT</pubDate></item></channel></rss>