[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Inter-thread signals/slots?
From: Vladimir Prus <ghost () cs ! msu ! su>
Date: 2006-05-03 12:47:50
Message-ID: e3a8pm$g25$1 () sea ! gmane ! org
[Download RAW message or body]
Thiago Macieira wrote:
> Vladimir Prus wrote:
>>Hello!
>>
>>The Qt4 docs say that signal/slot invocation can now cross thread
>>boundaries. I wonder if anything like that is available for Qt3 or
>> KDE3.*?
>
> No. You have to hand-tailor it yourself.
>
> In Qt3, signals are delivered to the slots in the thread the signal is
> emitted. But QObjects are not supported outside the GUI thread, so your
> problem is solved: signals and slots can only be used in the GUI thread.
Can you clarify one point? Say I have second thread. Is it safe to
manipulate QListView from that other thread, after calling qApp->lock()?
For example:
qApp->lock();
new QListViewItem(var, .....);
qApp->unlock();
?
- Volodya
>> 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