I am trying to add a vtkGraphLayoutView into a QVTK widget so that I can connect a custom vtk callback command to the QT signals and slots. <br>Specifically I need to add an observer to the annotation link to update selections. <br>
Previously I set up the callback with this code: <br><br>    selectionCallback = vtkSmartPointer&lt;vtkCallbackCommand&gt;::New();<br>    selectionCallback-&gt;SetClientData(this);<br>    selectionCallback-&gt;SetCallback (SelectionCallbackFunction);<br>
    graphLayoutView-&gt;GetRepresentation()-&gt;GetAnnotationLink()-&gt;AddObserver(&quot;AnnotationChangedEvent&quot;, selectionCallback);<br><br>How would I add the GraphLayout View to a QTMainWindow and maintain the ability to create custom callbacks as if it were a normal renderWindow? <br>
<br>Thanks<br>Ankit<br>