<div dir="ltr"><div dir="ltr">Add this before you create your QApplication object:<div><br></div><div><span style="color:rgb(0,0,0);font-family:monospace,fixed;font-size:13px;white-space:pre-wrap;background-color:rgb(251,252,253)">QSurfaceFormat::setDefaultFormat(</span><a class="gmail-code" href="https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html#a966b1fe4f2a52b36ecc0d9d1d1c81c70" style="color:rgb(70,101,162);text-decoration-line:none;font-family:monospace,fixed;font-size:13px;white-space:pre-wrap;background-color:rgb(251,252,253)">QVTKOpenGLWidget::defaultFormat</a><span style="color:rgb(0,0,0);font-family:monospace,fixed;font-size:13px;white-space:pre-wrap;background-color:rgb(251,252,253)">());</span> <br></div><div><br></div><div>This is described in the QVTKOpenGLWidget documentation: <a href="https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html#details">https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html#details</a></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 12, 2018 at 8:24 AM meakcey <<a href="mailto:meakcey@gmail.com">meakcey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
I am trying to embed QVTKOpenGLWidget into Qt Widget application but I am<br>
having such a strange error when I run the application in release mode.<br>
I added QOpenGLWidget to ui and promoted that to custom class inherited from<br>
QVTKOpenGLWidget.<br>
<br>
When I run it I am getting error below:<br>
<br>
ERROR: In C:\Program<br>
Files\VTK\source\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 785<br>
vtkGenericOpenGLRenderWindow (000002BF9664D7F0): GLEW could not be<br>
initialized.<br>
QOpenGLFramebufferObject: Framebuffer incomplete attachment.<br>
versionFunctions: Not supported on OpenGL ES<br>
<br>
I am not trying to build that with OpenGL ES actually but I think Qt is<br>
trying to run. <br>
If I start the release .exe outside of the Qt it is running without any<br>
problem. <br>
What could be the root cause of the problem?<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>