[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Emiting signals from threads
From: "Daniel Martin Lambea" <martind () pirack ! com>
Date: 2003-12-27 15:21:01
[Download RAW message or body]
> I have written a low-level FTP class and to use it in a non-blocking
> way, i wraped it in a QThread. Everything works fine, but now, the ftp
> class emits a signal, on which a certain dialog must be displayed to the
> user - but since the slot will be executed in thread context i can't do
> any GUI manipulation. So what should i do ?
You can set a variable in the thread's owner. If you monitor that flag
from the main context, you can manipulate the GUI freely.
Regards,
Daniel M. Lambea
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic