Is there a trick to turning on widgets in a Qt renderer?<div><br></div><div>I tried the normal code (below) I use to turn on a widget, but it does not appear in the renderer:</div><div><br></div><div><div> this->ui->qvtkWidgetRight->GetRenderWindow()->AddRenderer(rightRenderer);</div>
<div><br></div><div> //add a border widget to the right renderer</div><div> vtkSmartPointer<vtkBorderWidget> borderWidget = </div><div> vtkSmartPointer<vtkBorderWidget>::New();</div><div> </div><div> borderWidget->SetInteractor(this->ui->qvtkWidgetRight->GetRenderWindow()->GetInteractor());</div>
<div> </div><div> static_cast<vtkBorderRepresentation*>(borderWidget->GetRepresentation())->GetBorderProperty()->SetColor(1,0,0); //red</div><div> </div><div> borderWidget->SelectableOff();</div><div>
vtkSmartPointer<BorderCallback> borderCallback = </div><div> vtkSmartPointer<BorderCallback>::New();</div><div> </div><div> borderWidget->AddObserver(vtkCommand::InteractionEvent,borderCallback);</div>
<div> </div><div> borderWidget->On();</div></div><div><br></div><div>Is there something special that must be done to get them to work inside a Qt render window?</div><div><br clear="all">Thanks,<br><br>David<br>
</div>