[vtkusers] QVTKOpenGlWidget black screen and tests FAILED
Elvis Stansvik
elvis.stansvik at orexplore.com
Thu Jun 15 09:17:13 EDT 2017
2017-06-15 15:02 GMT+02:00 sebastien247 <sebastien247 at gmail.com>:
> Hi,
>
> I try to use QVTKOpenGlWidget with Qt Designer. But i obtain a black screen
> in my VTK view.
>
> I run tests and following tests FAILED:
> 525 - vtkGUISupportQtCxx-TestQtDebugLeaksView (OTHER_FAULT)
> 526 - vtkGUISupportQtCxx-TestQtTableModelAdapter (OTHER_FAULT)
> 527 - vtkGUISupportQtCxx-TestQtTreeModelAdapter (OTHER_FAULT)
> 528 - vtkGUISupportQtCxx-TestQVTKOpenGLWidget (OTHER_FAULT)
> 529 - vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA
> (OTHER_FAULT)
> 530 - vtkGUISupportQtCxx-TestWin32QVTKWidget (OTHER_FAULT)
> 531 - vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 (OTHER_FAULT)
>
Hi Sebastien,
Could you try disabling multi-sampling with:
auto defaultFormat = QVTKOpenGLWidget::defaultFormat();
defaultFormat.setSamples(0);
QSurfaceFormat::setDefaultFormat(defaultFormat);
before constructing your QApplication.
Or alternatively:
vtkOpenGLRenderWindow::SetGlobalMaximumNumberOfMultiSamples(0);
If that doesn't help, perhaps you are running into
https://gitlab.kitware.com/vtk/vtk/issues/17058
On which platform/GPU is this?
Elvis
> Thanks
>
> Sébastien
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.c
> om/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensou
> rce/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:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170615/d9da7c71/attachment.html>
More information about the vtkusers
mailing list