[vtk-developers] QVTKWidget2 status

Ben Boeckel ben.boeckel at kitware.com
Mon Jul 6 14:16:17 EDT 2015


Hi,

Does anyone have any experience with QVTKWidget2? I've been having
trouble integrating it into ParaView with the following results:

  - simply replacing it causes an external window to appear where the
    rendering happens (which looks correct), but with no interaction at
    all;
  - making a vtkGenericOpenGLRenderWindow (or
    vtkExternalOpenGLRenderWindow) and passing it to the widget gets rid
    of the extra window, but it never rendered (either blank or random
    previous bits of video memory shown);
  - hooking up events and callbacks to manually call updateGL, paintGL,
    and Frame has the background render, but none of the actors (which
    are present according to gdb).

I've tried a small application which adds QVTKWidget2 to a QMainWindow
and it never renders anything, it just shows previous video memory
chunks. The example which uses it (qtgraphicsview) crashes with either
Qt4 or Qt5 when making the OpenGL graphics context current.

There is a test in GUISupport/Qt/Python which (tries) to use it, but it
isn't added to the VTK test suite[1] and doesn't work anyways
(QVTKWidget2 is not wrapped into Python[2]).

The only non-VTK reference I've been able to find of QVTKWidget2 (that
isn't from 2012 or earlier) is from a github project[3] where QVTKWidget
works, but QVTKWidget2 does not (with master).

All of this points to QVTKWidget2 having worked at one point, but it got
broken somewhere along the line. Does anyone know of a good hash or tag
to start bisecting from (I'm starting to jump back releases until my
test programs stop compiling)?

Thanks,

--Ben

[1]Seems it got removed here, probably by accident:

    commit c13ff7ba71fb01995a7232b766ab960124af57dc
    Author: VTK Developers <vtk-developers at vtk.org>
    Date:   Mon Apr 9 10:03:20 2012 -0400

    Remove monolithic VTK files not used after modularization

    The modular VTK build system completely replaces the old monolithic
    CMake code.

[2]There is a .sip file for it, but nothing uses it. The CMake code for
SIP logic also looks very outdated; from 2010.
[3]https://github.com/jlabroquere/vtkwidget-test


More information about the vtk-developers mailing list