[vtkusers] QVtkWidget with wt5 and vtk 6
Awn Duqoum
aduqoum at ndigital.com
Thu Oct 8 10:17:01 EDT 2015
Hello,
I am currently developing a graphing software that is to include the QVtkWidget as the central widget and have the menu bar for controls.
The issue I am having is when I set the render window to widget all interactors seem to stop working, I am using a chart put inside a sense with an actor holding the scene, I have tried running the normal trackball interactor style to no avail. (It works perfect when I send the render window to a view but now when I send it to the widget)
Sample code :
//Start of code
_qvtk->SetRenderWindow((_graph->Graph(Numbers))->GetRenderer()->GetRenderWindow());
vtkSmartPointer<vtkInteractorStyleTrackballCamera> interactor = vtkSmartPointer<vtkInteractorStyleTrackballCamera>::New();
vtkSmartPointer<vtkRenderWindowInteractor> win_int = vtkSmartPointer<vtkRenderWindowInteractor>::New();
_qvtk->GetRenderWindow()->GetInteractor()->SetInteractorStyle(interactor);
_qvtk->GetRenderWindow()->GetInteractor()->Initialize();
win_int->SetRenderWindow(_qvtk->GetRenderWindow());
win_int->SetEnableRender(true);
win_int->Initialize();
_qvtk->update();
setCentralWidget(_qvtk);
win_int ->Start();
// end of code
Thank you in advance,
Awn Duqoum
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151008/878346c7/attachment.html>
More information about the vtkusers
mailing list