[vtkusers] Qt VTK OpenGL Not Supported problem
Mike Chinander
chinander at gmail.com
Thu Sep 20 10:02:38 EDT 2018
Yesterday, I encountered this QT_OPENGL issue when upgrading to the latest
master (had been using VTK 8.1). The just-released QtCreator 4.7.1 no
longer forces this to be 'angle' by default.
http://blog.qt.io/blog/2018/09/20/qt-creator-4-7-1-released
On Thu, Sep 13, 2018 at 6:21 AM meakcey <meakcey at gmail.com> wrote:
> 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
> _______________________________________________
> 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/20180920/0b1172fa/attachment.html>
More information about the vtkusers
mailing list