[vtkusers] Qt VTK OpenGL Not Supported problem

meakcey meakcey at gmail.com
Thu Sep 13 07:21:44 EDT 2018


I could not implement your suggestion
I have tried something like that on main.cpp

#include "mainwindow.h"
#include <QApplication>

#include <QSurfaceFormat>
#include <QVTKOpenGLWidget.h>

int main(int argc, char *argv[])
{
    QSurfaceFormat::setDefaultFormat(QVTKOpenGLWidget::defaultFormat());
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}

But that did not work.

When I looked at the system environment settings of Qt, I have seen there is
a variable like QT_OPENGL = angle
I have changed that to "desktop" and it worked.

Thank you




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list