[Qt-interest] Forcing a signal "emit" to be queued

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Mon Mar 21 10:40:41 CET 2011


> 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)

this is the same thing that I wrote! :)

I think you meant this:

connect(myPrivateClassPointer, SIGNAL(myInternalSignal()), this,
SIGNAL(mySignal()), Qt::QueuedConnection)

The private class emits a signal which then causes the 'mySignal()' to
be emitted in a queued manner.

HTH,
-mandeep

> where myInternalSignal is in a private class.
> thanks,
> Sarvesh
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>



More information about the Qt-interest-old mailing list