[vtkusers] QVTKInteractor problem
Clinton Stimpson
clinton at elemtech.com
Tue Feb 10 23:15:46 EST 2009
So which callbacks aren't working? I don't see how trying to make
another event loop would solve a callback problem.
If its a dialog, why not call exec() on it instead of show() ? exec()
will create a temporary local event loop (see QEventLoop).
Also, each thread can only have one event loop active at a time, and all
Qt widgets are on the same thread.
Clint
Luis Roberto P. Paula wrote:
> I have set the second window as a Dialog window and open it as modal.
> For some reason, the callback for this new window are not being observed.
>
> On Tue, Feb 10, 2009 at 1:04 AM, Luis Roberto P. Paula
> <luisrpp at gmail.com <mailto:luisrpp at gmail.com>> wrote:
>
> Hi All,
>
> Since QVTKInteractor cannot control the event loop, how do I start
> a second window after the click of a button and make this new
> window to have its own event loop?
>
> When the button is clicked, this action is performed:
>
> MyWidget* widget = new MyWidget();
> widget->show();
>
> The new window appears, but to make the interactor to work, there
> should be a command like:
>
> qApp->exec();
>
> but QT does not allow me to start a new GUI event loop.
>
> Does anybody can help me?
>
> Thanks,
> Luis
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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