[vtkusers] Qt/VTK error

Jothy jothybasu at gmail.com
Wed Aug 4 05:10:29 EDT 2010


Yes, I have done the following

UI*->QVTKWidget->GetRenderWindow()->AddRenderer(vtkRenderer*);
UI*->QVTKWidget->GetRenderWindow()->SetInteractor(UI*->QVTKWidget->GetInteractor());

but, what is this vtkWidget - is that the qvtkWidget?

Thanks,

Jothy


On Wed, Aug 4, 2010 at 4:14 AM, Prathamesh Kulkarni <
prathameshmkulkarni at gmail.com> wrote:

> Have you done this prior to your posted code?:
>
> UI*->QVTKWidget->GetRenderWindow()->AddRenderer(vtkRenderer*);
>
> UI*->QVTKWidget->GetRenderWindow()->SetInteractor(UI*->QVTKWidget->GetInteractor());
>
> and also,
> vtkWidget->ProcessEventsOn();
>
>
> Prathamesh
>
> Message: 3
> Date: Tue, 3 Aug 2010 16:22:00 +0100
> From: Jothy <jothybasu at gmail.com>
> Subject: [vtkusers] Qt/VTK error
> To: VTK Mailing List <vtkusers at vtk.org>
> Message-ID:
>        <AANLkTinHUzGOuZS6r0qmYF2dO3AkUzvBaYcBXbjv0GCe at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi all,
>
> what's wrong here?
>
> *ui->qvtkWidget->GetInteractor()->Initialize();*
>
> *ui->qvtkWidget->GetRenderWindow()->Render();*
>
> *checkerWidget->On();*
>
> *ui->qvtkWidget->GetInteractor()->Start();
>
> throws "*QVTKInteractor (0x3652ba8): QVTKInteractor cannot control the
> event loop." in Qt Creator.
>
> Thanks,
>
> Jothy
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20100803/449fd90c/attachment.html
> >
>
> ------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100804/f3f7f083/attachment.htm>


More information about the vtkusers mailing list