1.
vtkSmartPointer<vtkRenderWindow> renderWindow = ui.qvtkWidget->GetRenderWindow();//vtkSmartPointer<vtkRenderWindow>::New();
2.
1 QWidget* widget;
2 vtkRenderWindow* renderWindow = .....:New();
3 renderWindow->SetParentId((HWND)widget->winid());