[Qt-interest] Create a new GUI Thread
Malyushytsky, Alex
alex at wai.com
Wed Feb 11 23:40:57 CET 2009
Is dialog modal?
Modal dialogs have its own event loops.
If vtk widget rely on QApplication event loop it might be a problem.
In this case try to use modeless dialog.
Also there is a vtkuser mailing list which might provide more help, cause people there might have better knowledge what is required to support functionality of vtkwidgets.
Regards,
Alex
________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Luis Roberto P. Paula
Sent: Wednesday, February 11, 2009 5:33 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Create a new GUI Thread
Hi Andreas,
>> So you want two event loops that run in parallel, not one loop that blocks
the other (which can be done with QDialog::exec())? May I ask why?
I'm using VTK (www.vtk.org<http://www.vtk.org>) with QT and for some reson, the callbacks of vtk are only captured if the observers are set before the command qApp->exec() in the main function.
It works fine for the main window, but I also have vtkwidgets in a Dialog that is loaded after the click of a button in the main window. In the Dialog, the callbacks are not working. The Dialog callbacks only works if it is loaded before the qApp->exec() in the main function.
Luis
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
"Please consider our environment before printing this email."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090211/61341771/attachment.html
More information about the Qt-interest-old
mailing list