howto run commonqt asynchronously

Stas Boukarev stassats at gmail.com
Mon Dec 28 22:11:42 UTC 2015


On Tue, Dec 29, 2015 at 1:08 AM, Orm Finnendahl
<orm.finnendahl at selma.hfmdk-frankfurt.de> wrote:
> Am Dienstag, den 29. Dezember 2015 um 00:54:09 Uhr (+0300) schrieb Stas Boukarev:
>> All the GUI stuff has to be done from the same thread (and on some
>> OSes it has to be the main thread).
>> To communicate with Qt from a different thread use Qt signals, they
>> are thread-safe.
>
> Thanks, that helps! Do you know, why it is impossible to restart the
> tutorial example after the thread has finished?  Restarting in the
> main thread after closing the window is no problem. The only way to
> restart the tutorial after running it within sb-threads:make-thread is
> to restart sbcl.
You can restart it in that thread, but only in that thread. The event loop
cannot be restarted, but as long as it's running you can execute and close
as many windows as you'd like.

-- 
With best regards, Stas.



More information about the commonqt-devel mailing list