[vtkusers] Qt/VTK error

André Prins a.h.prins at gmail.com
Tue Aug 3 12:53:17 EDT 2010


Hi Jothy,

I don't know if it is possible to control the event-loop in
QVTKWidget.The QVTKWidget should probably use the Qt eventloop, with
QApplication::exec().

Probably something like:

    QApplication app;
       ...
    ui->show();
    app.exec();

Regards,
Andre

On Tue, Aug 3, 2010 at 11:22 AM, Jothy <jothybasu at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list