[vtkusers] vtkChartHistogram2D use case

BBerco bebe0705 at colorado.edu
Thu May 31 13:01:44 EDT 2018


Thanks, I got the example to work on its own. Wrapping Qt around the example
is still problematic, as I want to display the histogram in a QDialog that
comes with a Qt/VTK Widget, and several Qt buttons use for image browsing or
window termination. 

Basically, I haven't been able to figure out the right combination of Qt/VTK
Widget and rendering window types that would make this work:

[1.] Using a *QVTKOpenGLWidget* and *vtkGenericOpenGLRenderWindow* leaves
the rendering window dark, just as if *this -> view -> GetScene() ->
AddItem(histo);* had had no effect

[2.] Using a *QVTKWidget* and a *vtkRenderWindow* appears to "work" at first
(see below), with two snags:
 - I get a deprecation warning :  *warning:
'QVTKWidget::QVTKWidget(QWidget*, Qt::WindowFlags)' is deprecated *
 - More importantly, I cannot with the buttons underneath the QVTKWidget
anymore. The only way I can close the QDialog is by clicking on the close
button in the upper left corner

<http://vtk.1045678.n5.nabble.com/file/t341520/Screen_Shot_2018-05-31_at_10.png> 







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


More information about the vtkusers mailing list