<?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[How can I consistently create QOpenGLWidget applications to show up?]]></title><description><![CDATA[<p dir="auto">I've been having this problem for a while. I created an application that I can successfully display a black screen using the QOpenGLWidget on the Creator plopped inside of a QFrame or even on the QMainWindow itself. However, there are random times where I do the same thing, where nothing is on the QMainWindow except the OpenGLWidget and the program will not run. It just hangs and doesn't ever load the widget, doesn't load anything, just sits there until I am forced to close the program. This is about the fourth time this has happened to me.</p>
<p dir="auto">Has anyone run into this issue before? I don't really know how to replicate the problem.</p>
]]></description><link>https://forum.qt.io/topic/102595/how-can-i-consistently-create-qopenglwidget-applications-to-show-up</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 20:41:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/102595.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 May 2019 21:09:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Wed, 15 May 2019 22:15:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">yes, I just changed the output and it still has the same effect on the secondary monitor.</p>
]]></description><link>https://forum.qt.io/post/529156</link><guid isPermaLink="true">https://forum.qt.io/post/529156</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Wed, 15 May 2019 22:15:06 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Wed, 15 May 2019 22:10:20 GMT]]></title><description><![CDATA[<p dir="auto">As in plug the cable in a different output. IIRC the RTX2080 has four of them.</p>
]]></description><link>https://forum.qt.io/post/529155</link><guid isPermaLink="true">https://forum.qt.io/post/529155</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 15 May 2019 22:10:20 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Wed, 15 May 2019 22:08:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">as in change the cable? or change the primary monitor?</p>
]]></description><link>https://forum.qt.io/post/529154</link><guid isPermaLink="true">https://forum.qt.io/post/529154</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Wed, 15 May 2019 22:08:36 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Wed, 15 May 2019 21:51:10 GMT]]></title><description><![CDATA[<p dir="auto">Might be a silly test but does it still happen if you change the output used to connect your screen ?</p>
]]></description><link>https://forum.qt.io/post/529150</link><guid isPermaLink="true">https://forum.qt.io/post/529150</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 15 May 2019 21:51:10 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Tue, 14 May 2019 20:42:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">They are the same monitors. They are Dell U2717D 27" 2560x1440 60 hz Monitors.</p>
<p dir="auto">Link: <a href="https://pcpartpicker.com/product/QpH48d/dell-monitor-u2717d" target="_blank" rel="noopener noreferrer nofollow ugc">https://pcpartpicker.com/product/QpH48d/dell-monitor-u2717d</a></p>
<p dir="auto">Both are plugged into the graphics card using Display Port.</p>
]]></description><link>https://forum.qt.io/post/528892</link><guid isPermaLink="true">https://forum.qt.io/post/528892</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Tue, 14 May 2019 20:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Tue, 14 May 2019 19:10:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the feedback !</p>
<p dir="auto">Same monitors ? What resolution are they ?</p>
]]></description><link>https://forum.qt.io/post/528876</link><guid isPermaLink="true">https://forum.qt.io/post/528876</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 14 May 2019 19:10:24 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Tue, 14 May 2019 17:50:59 GMT]]></title><description><![CDATA[<p dir="auto"><strong>UPDATE</strong> A REALLY Weird one, once I discover the solution I will mark this as solved.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> as I suspected, it was not the drivers, the drivers are just fine. However, it could be the configuration of my setup that is causing it to crash.</p>
<p dir="auto">Essentially I am running two monitors, both using display port, and both are connected to my graphics card. When I try to launch the program on my left monitor (meaning the secondary monitor) the program halts and crashes. However, if I launch the program on my right monitor (the primary monitor) the program launches just fine. And this is with all openGL applications. So I will try and figure out the root of this cause and I will mark the post as solved once I figure out how to launch it on both monitors.</p>
]]></description><link>https://forum.qt.io/post/528862</link><guid isPermaLink="true">https://forum.qt.io/post/528862</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Tue, 14 May 2019 17:50:59 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Mon, 13 May 2019 16:50:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">I put a break point in main and ran it with a debugger, I pressed paused when nothing happened and this is what came up. It doesn't mean anything to me, but maybe it means something to you.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/b9d8358e-d00b-4c7c-833d-e6e4f89aafc8.png" alt="0_1557766222311_backtrace.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/post/528641</link><guid isPermaLink="true">https://forum.qt.io/post/528641</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Mon, 13 May 2019 16:50:33 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Mon, 13 May 2019 16:35:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">I rolled back the drivers to when I first built this computer. I am running 419.17 now instead of 419.67 which is the current version. This is the driver I was using when my first application started. The same issue is happening.</p>
<p dir="auto">I really do not think it is a driver issue if I am going to be completely honest. You do know more than I do, so maybe you are correct, however I feel if it were a driver issue I wouldn't get inconsistencies with different programs using OpenGL (meaning some programs that I created using Qt and OpenGL work and others do not). The other thing that suggests to me that it isn't my driver, is the fact that I can create a separate OpenGL application without Qt just fine. But it does me no good if I cannot use Qt to work on my projects.</p>
<p dir="auto">Another more drastic measure that I have given thought, was wiping the OS entirely and starting from scratch. However this is the last thing that I want to do because this takes a lot of time and causes big headaches.</p>
<p dir="auto">Thank you again for all of your help.</p>
<p dir="auto"><strong>EDIT</strong> it appears I haven't rolled them back</p>
<p dir="auto"><strong>EDIT 2</strong> I am running 411.70, I'm assuming this is the earliest driver that NVIDIA Automatically provides with the graphics card. And it is the same behavior. Again, I do not think it is the drivers. But it seems we have beat this to the ground as far as we can go.</p>
]]></description><link>https://forum.qt.io/post/528639</link><guid isPermaLink="true">https://forum.qt.io/post/528639</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Mon, 13 May 2019 16:35:29 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Sat, 11 May 2019 07:46:02 GMT]]></title><description><![CDATA[<p dir="auto">As I already said, it's likely a driver issue. While sharing the same version number, the architecture is different between these two OSes.</p>
]]></description><link>https://forum.qt.io/post/528296</link><guid isPermaLink="true">https://forum.qt.io/post/528296</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 11 May 2019 07:46:02 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Sat, 11 May 2019 02:32:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">I just launched the program from my home. It launches just fine. Only difference is that I am running a GTX 1080ti instead of an RTX 2080. I know I am repeating the same thing, but I do not understand why the linux machine with the same physical graphics card runs the program fine. But when I switch to the windows partition, it craps out.</p>
<p dir="auto">I'm kind of at a loss here. Maybe it is a hardware issue within windows itself. Or maybe it's a one time fluke and it is only affecting me.</p>
]]></description><link>https://forum.qt.io/post/528283</link><guid isPermaLink="true">https://forum.qt.io/post/528283</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Sat, 11 May 2019 02:32:17 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Fri, 10 May 2019 22:03:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">I've uninstalled the graphics drivers and I attempted to launch the same application without the drivers. The same behavior happened. I then reinstalled the graphics drivers and launched the program, and the same behavior happened.</p>
<p dir="auto">I could try downgrading my driver version. But I do not know where to go to find a lesser version of my drivers. I also don't know, why Qt chooses to launch one application, and not the other just fine. It's all very confusing.</p>
]]></description><link>https://forum.qt.io/post/528276</link><guid isPermaLink="true">https://forum.qt.io/post/528276</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Fri, 10 May 2019 22:03:04 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Fri, 10 May 2019 21:31:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">I will uninstall my graphics driver and reinstall them. I will let you know what happens.</p>
]]></description><link>https://forum.qt.io/post/528273</link><guid isPermaLink="true">https://forum.qt.io/post/528273</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Fri, 10 May 2019 21:31:35 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Fri, 10 May 2019 21:13:22 GMT]]></title><description><![CDATA[<p dir="auto">Then we can rule out a hardware related issue. So it's very likely the driver. Even if the same version, these are still two radically different platforms.</p>
]]></description><link>https://forum.qt.io/post/528263</link><guid isPermaLink="true">https://forum.qt.io/post/528263</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 10 May 2019 21:13:22 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Fri, 10 May 2019 21:08:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">I will go ahead and try that next. That is the only thing I haven't done. I have updated my Nvidia drivers to their latest versions. It's just odd to me since my linux partition is using the same graphics card as my Windows machine. When I get home I will test it on my Windows Machine there.</p>
<p dir="auto">Thank you for working with me.</p>
]]></description><link>https://forum.qt.io/post/528262</link><guid isPermaLink="true">https://forum.qt.io/post/528262</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Fri, 10 May 2019 21:08:08 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Fri, 10 May 2019 20:39:59 GMT]]></title><description><![CDATA[<p dir="auto">It might be a graphics card driver issue. Can you test your application on a Windows machine with a different card ? Or update/downgrade your Nvidia drivers.</p>
]]></description><link>https://forum.qt.io/post/528258</link><guid isPermaLink="true">https://forum.qt.io/post/528258</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 10 May 2019 20:39:59 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Fri, 10 May 2019 18:49:16 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Update 3</strong></p>
<p dir="auto">I uninstalled and reinstalled QT. And that did not work either, I really do not understand why this is happening as I don't think I have done anything different from the past. I am not sure if this is a bug, since I seem to be the only one suffering from this problem. I have attached images of one of my programs running, another image of the program I am working on hanging, and a final image showing how simple the ui looks compared to the one that is working.</p>
<p dir="auto">So I do not know what to do from here. Again, I am not sure if this is something I am doing wrong, if it is a bug, or maybe it is just my computer. I have tried this program in both Linux and MacOSX and it runs just fine. However, when I try this in Windows. It doesn't work at all. So I am at a complete loss of what to try. I have also linked the code that I am working on if anyone would like to clone it down and try running it. You must have C++17 in order for this program to run however.</p>
<p dir="auto">Image 1: <img src="https://ddgobkiprc33d.cloudfront.net/519573ed-de71-47d5-8a4f-1dbaa011cea2.png" alt="0_1557514009366_workingProgram.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Image 2:<img src="https://ddgobkiprc33d.cloudfront.net/394f4019-bec6-45e2-8bdf-e45d63d3f068.png" alt="0_1557514023567_nonWorkingProgram.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Image 3: <img src="https://ddgobkiprc33d.cloudfront.net/0eec0d6e-52a2-443c-ab72-1779130e9d14.png" alt="0_1557514053611_theui.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Github link: <a href="https://github.com/Sailanarmo/ControllerTest" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Sailanarmo/ControllerTest</a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/fcarney">@<bdi>fcarney</bdi></a> or anyone who would like to help out. This is as far as I can get. Where do I go from here?</p>
]]></description><link>https://forum.qt.io/post/528228</link><guid isPermaLink="true">https://forum.qt.io/post/528228</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Fri, 10 May 2019 18:49:16 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Thu, 09 May 2019 22:05:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">Went to 5.12.3 and I have the same results on Windows. I've tried with 5.12.1, 5.12.2, and now 5.12.3 and all have the same exact behavior.<br />
which is odd, because the one application in which my opengl program works was ran with 5.12.1. So I don't really know why it would start acting this way now.</p>
]]></description><link>https://forum.qt.io/post/528096</link><guid isPermaLink="true">https://forum.qt.io/post/528096</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Thu, 09 May 2019 22:05:25 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Thu, 09 May 2019 21:20:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fcarney">@<bdi>fcarney</bdi></a> That is what I am doing. I create a class, and then with the widget I promote it to that class. At least this is what I am attempting to do with my current program in Windows. However, like I said, it just hangs there for no reason. It doesn't crash, just hangs, no errors.</p>
<p dir="auto">So to recreate it, I just created a new project from scratch and then threw the widget on there and hit run. Again, same behavior. But, when I go to Ubuntu 17.04, there is no issue, the program runs just fine. Which tells me there is something wrong with the windows side of things.</p>
<p dir="auto">I was able to finish my project within Linux, however, getting it to run in Window's will now be the trick because it doesn't want to run in Windows. It just hangs there.</p>
]]></description><link>https://forum.qt.io/post/528089</link><guid isPermaLink="true">https://forum.qt.io/post/528089</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Thu, 09 May 2019 21:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Thu, 09 May 2019 21:02:45 GMT]]></title><description><![CDATA[<p dir="auto">Is it practical to ever use a QOpenGLWidget without subclassing it anyway?  Or promoting it?  I thought using that widget would require a fair amount of opengl code to go with it.</p>
]]></description><link>https://forum.qt.io/post/528085</link><guid isPermaLink="true">https://forum.qt.io/post/528085</guid><dc:creator><![CDATA[fcarney]]></dc:creator><pubDate>Thu, 09 May 2019 21:02:45 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Thu, 09 May 2019 19:45:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">I did an update of QT and the same behavior has produced itself. I did not try the beta. That is something I can try here in an hour or two.</p>
]]></description><link>https://forum.qt.io/post/528065</link><guid isPermaLink="true">https://forum.qt.io/post/528065</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Thu, 09 May 2019 19:45:59 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Thu, 09 May 2019 19:44:05 GMT]]></title><description><![CDATA[<p dir="auto">You can start by updating your Qt version to the latest version of the 5.12 series. If it still crashes, you can also try the 5.13 beta.</p>
]]></description><link>https://forum.qt.io/post/528064</link><guid isPermaLink="true">https://forum.qt.io/post/528064</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 09 May 2019 19:44:05 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Thu, 09 May 2019 18:29:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto"><strong>Update 2</strong> Not sure why, but this seems to be a problem on Windows. I cloned down the project I was working on into my Linux machine running Ubuntu 17.04. There is no hang up whatsoever. I can develop from here, but this really isn't the most ideal way to develop if I can help it. I am also not sure if this is a bug within the Windows side of things.</p>
<p dir="auto">What should I do from this point on?</p>
]]></description><link>https://forum.qt.io/post/528054</link><guid isPermaLink="true">https://forum.qt.io/post/528054</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Thu, 09 May 2019 18:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to How can I consistently create QOpenGLWidget applications to show up? on Thu, 09 May 2019 16:03:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a></p>
<p dir="auto">It is definitely QT 5.12.1. And to recreate the crash, as I have said, all I have done is:</p>
<p dir="auto">File-&gt;New File or Project-&gt;QT Application</p>
<p dir="auto">I then go to the ui file, drag an OpenGL Widget on the QMainwindow, hit save, then run.</p>
<p dir="auto">The program then hangs forever. It doesn't crash, doesn't connect to any server, just hangs there until I force quit the application.</p>
]]></description><link>https://forum.qt.io/post/528048</link><guid isPermaLink="true">https://forum.qt.io/post/528048</guid><dc:creator><![CDATA[Sailanarmo]]></dc:creator><pubDate>Thu, 09 May 2019 16:03:24 GMT</pubDate></item></channel></rss>