QtVtk
QtVtk copied to clipboard
QVTKOpenGLNativeWidget has not been declared
I can't build the master version of QtVTK anymore with VTK 8.2.0 and Qt 5.12.3 on Linux:
/home/user/projects/QtVtk/src/QVTKFramebufferObjectRenderer.cpp: In constructor ‘QVTKFramebufferObjectRenderer::QVTKFramebufferObjectRenderer()’:
/home/user/projects/QtVtk/src/QVTKFramebufferObjectRenderer.cpp:28:35: error: ‘QVTKOpenGLNativeWidget’ has not been declared
QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());
I do have these headers though.
Hi guys, Has this been resolved. I just tried to build the project and I am getting this same error when I use VTK 8.2 with external rendering module included and QT 5.13 on windows using visual studio 2017. When I try and add the header file as suggested in this fix it doesn't know where it the header is. Do I need to add a path in environmental settings or similar? Does this problem happen with vtk 8.1?
Thanks in advance
The first suggestion worked for me. Double check your include paths.
Thank you, when adding headers, it works.