<div dir="ltr">Hello there Awesome VTK community,<div><br></div><div>I have been trying to make a Qt app work for a few days with no success. The screenshot of the app is attached in this email. In this app (please look at the screenshot), the user will first select a directory. Once the directory is loaded, the user will click the "Feed a Dataset" button. It will then trigger an ITK function to read a file and execute a simple VTK function to display a 2D ultrasound image on the designated window. When the button is clicked again, the window should clear off and display the next image. That's is for now.</div><div><br></div><div>The ultimate purpose of this application is to visualize incremental volume reconstruction from an already recorded tracked series of ultrasound images by providing an image one at a time. This has been done in many ways before. Nothing really new.</div><div><br></div><div>The app runs fine and I am able to select a directory. THE PROBLEM is when I click the "Feed a Dataset" button, nothing displays on the window, the app freezes and then closes. I tried many ways but cannot really figure out why this is happening. The Ultrasound window is an object of class QVTKWidget. And the VTK function I am calling from inside the button's slot function is as follows. </div><div><b>void USImageViewer::viewonUSwindow(ImageType2D::Pointer usImage)</b>{<br></div><div>        // setup and connect itk with vtk</div><div><span style="white-space:pre">  </span>vtkConnectorType::Pointer connector = vtkConnectorType::New();</div><div><span style="white-space:pre">        </span>connector->SetInput(tacImage);</div><div><span style="white-space:pre">     </span>connector->Update();   <font color="#38761d">// seems to be ok until here</font></div><div><br></div><div><div>        // Convert to vtk image</div><div><span style="white-space:pre">     </span>vtkImage = vtkSmartPointer<vtkImageData>::New();</div><div><span style="white-space:pre">        </span>vtkImage->DeepCopy(connector->GetOutput()); <font color="#38761d">// hangs during executing this line, indicating something is wrong with the connector</font></div><div><span style="white-space:pre">    </span><span style="white-space:pre">     </span></div><div><span style="white-space:pre">      </span>// Image actor</div><div><span style="white-space:pre">        </span>tacIMactor = vtkSmartPointer<vtkImageActor>::New();</div><div><span style="white-space:pre">     </span>tacIMactor->GetMapper()->SetInputData(vtkImage);</div></div><div>        renderer = vtkSmartPointer<vtkRenderer>::New();<br></div><div><div>        renderer->AddActor(tacIMactor);</div><div><span style="white-space:pre">  </span>renderer->ResetCamera();</div><div><br></div><div><span style="white-space:pre">  </span>ui->usImQVTKviewer->GetRenderWindow()->AddRenderer(renderer);</div><div><span style="white-space:pre">        </span>ui->usImQVTKviewer->update();</div></div><div>}</div><div><br></div><div>Can anyone please help me out in this? Your help is much appreciated. </div><div><br></div><div>Sincerely</div><div>Shams</div><div><br></div></div>