[Qt-interest] Forcing a signal "emit" to be queued
sarvesh saran
aquarian.thunder at gmail.com
Mon Mar 21 09:04:11 CET 2011
On Mon, Mar 21, 2011 at 1:05 PM, Mandeep Sandhu <mandeepsandhu.chd at gmail.com
> wrote:
> Please don't top-post! :)
>
sorry..qt-interest seemed a bit more tolerant to top posting so i guess i
never bothered..anyways i'll get tgreasemonkey set up right away...
> Leaving the 'access control' problem mentioned by Andre, if users
> connect to 'mySignal()' (and not use 'myInternalSignal()'), then their
> slots _should_ be called in a queued manner (since the signal chaining
> is done internally with a queued connection).
>
> I mention 'should' as I've yet to verify this approach. Will post back
> my findings soon.
>
> Hope this explains it.
I see...
so your connection should have been written as (correct me if i'm wrong..)
connect(this, SIGNAL(mySignal()), this, SIGNAL(myInternalSignal()),
Qt::QueuedConnection)
where myInternalSignal is in a private class.
thanks,
Sarvesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110321/d015d924/attachment.html
More information about the Qt-interest-old
mailing list