Hi Miklos, <br><br>Please see comment reported below.<br><br><div class="gmail_quote">On Mon, Oct 24, 2011 at 1:33 PM, Miklos Espak <span dir="ltr"><<a href="mailto:espakm@gmail.com">espakm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div><br></div><div>I created a workflow deriving the steps from the widget step class. I run every step in a separate thread, so they do not block the GUI.</div>
</blockquote><div><br>By running the step in a different thread, what do you mean exactly ? <br><br>As a side note: "Although <a href="http://doc.qt.nokia.com/stable/qobject.html">QObject</a> is reentrant, the GUI classes, notably <a href="http://doc.qt.nokia.com/stable/qwidget.html">QWidget</a> and all its subclasses, are not reentrant. They can only be used from the main thread."<br>
See <a href="http://doc.qt.nokia.com/stable/threads-qobject.html">http://doc.qt.nokia.com/stable/threads-qobject.html</a><br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><br></div><div>When I press the Next button, the execution starts in the separate thread, but the next button remains enabled. If I press it again, it starts the next step, even if the current step has not finished!</div>
<div><br></div><div>On the screen still the first page is displayed meanwhile.</div><div><br></div><div>I think the transition should be performed only after that the step sent the onExitComplete signal.</div><div><br></div>
<div>I am not familiar with the internals of the framework. Is there anybody who could have a look at it?</div></blockquote><div><br>Would it be possible for you to share some code ? May a topic on your CTK fork ? <br> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><br></div><div>Thank you very much,</div><div><br></div><font color="#888888"><div>Miklos</div>
<div><br></div>
</font><br>_______________________________________________<br>
Ctk-developers mailing list<br>
<a href="mailto:Ctk-developers@commontk.org">Ctk-developers@commontk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>