[vtkusers] vtkAviWriter and QThread problem
Barth, Sebastian
sebastian.barth at iosb.fraunhofer.de
Thu Jul 1 04:10:13 EDT 2010
Hello vtkusers,
I use Qt 4.6.2 with VTK 5.6.0 to display a cluster of points.
I try to create a video of my simulation with the help of vtkAVIWriter. For that I have a second QThread with an own event loop. Anyway, when I start a slot of a QObject derived class on this thread which calls the vtkAviWriter::Start() method, a Windows dialog prompts for selecting the compress options and the slot waits for the dialog to close to continue its work.
The curious problem is, that the started slot waits correctly, while the event loop of the QThread continues and begins to execute the next signal/slot in its event queue.
When the slot that started the windows dialog can continue its work because the dialog has returned, the event loop stops its current work again and continues the execution of the waiting slot. When this slot returns the last interrupted slot on the event queue continues.
If I set SetPromptCompressionOptions(false), the window does not appear and everything works fine and in a row (serialized)!
Do you have any ideas?
Thanks a lot.
Sebastian Barth
More information about the vtkusers
mailing list