[vtkusers] Re: Best vtk / QT package?
Steffen.Oeltze at Student.Uni-Magdeburg.DE
Fri Sep 6 11:03:52 EDT 2002
I do have trouble. I'm using the vtkqt-library by Matthias Koenig to
application that supports stereo rendering. Unfortuately, executing the
renWin->StereoCapableWindowOn() - method results in the following
> vtkQtRenderWindow (0x05502E8C): Requesting a StereoCapableWindow must
> be performed before the window is realized, i.e. before a render.
I know that one has to execute this method before the window is rendered
I didn't use render() in the source code before so I assume that the
rendered by some internal vtkqt-method. Here is the critical part of my
> // create a Qt-application and a widget
> QApplication a( argc, argv );
> QWidget *qw = new QWidget;
> qw->resize(350, 200);
> // create a renderer and a render window
> vtkRenderer *ren1 = vtkRenderer::New();
> vtkQtRenderWindow *renWin = new vtkQtRenderWindow(qw);
> renWin->setGeometry(0, 0, 300, 200);
Could you test please if the StereoCapableWindowOn() - method works with
the package you are using.
By the way, why can't one set the window to stereo mode after it has
been rendered ?
More information about the vtkusers