[vtkusers] Qt VTK OpenGL Not Supported problem

Mike Chinander chinander at gmail.com
Wed Sep 12 10:18:23 EDT 2018


Add this before you create your QApplication object:

QSurfaceFormat::setDefaultFormat(QVTKOpenGLWidget::defaultFormat
<https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html#a966b1fe4f2a52b36ecc0d9d1d1c81c70>
());

This is described in the QVTKOpenGLWidget documentation:
https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html#details

On Wed, Sep 12, 2018 at 8:24 AM meakcey <meakcey at gmail.com> wrote:

> Hi
> I am trying to embed QVTKOpenGLWidget into Qt Widget application but I am
> having such a strange error when I run the application in release mode.
> I added QOpenGLWidget to ui and promoted that to custom class inherited
> from
> QVTKOpenGLWidget.
>
> When I run it I am getting error below:
>
> ERROR: In C:\Program
> Files\VTK\source\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 785
> vtkGenericOpenGLRenderWindow (000002BF9664D7F0): GLEW could not be
> initialized.
> QOpenGLFramebufferObject: Framebuffer incomplete attachment.
> versionFunctions: Not supported on OpenGL ES
>
> I am not trying to build that with OpenGL ES actually but I think Qt is
> trying to run.
> If I start the release .exe outside of the Qt it is running without any
> problem.
> What could be the root cause of the problem?
>
> Thanks
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180912/84c3b17f/attachment.html>


More information about the vtkusers mailing list