[Qt-interest] Synchronous signals, is that possible?

R. Reucher rene.reucher at batcom-it.net
Sun Feb 15 15:57:39 CET 2009


On Sun February 15 2009 14:28:51 Andrea Franceschini wrote:
> The dilemma is that I really love the elegance and logical abstraction
> provided by signals and slots and, unless there's a way to make them
> work in a synchronous fashion, I'll have to directly pass the pointers
> to my application, and that's frankly quite ugly.
>
> Ideas?
You could use a "directly connected" signal instead.

Qt::DirectConnection:
When emitted, the signal is immediately delivered to the slot.

See
http://doc.trolltech.com/4.4/qobject.html#connect
http://doc.trolltech.com/4.4/qt.html#ConnectionType-enum

HTH, René
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/

	How many seconds are there in a year?  If I tell you there  are
3.155  x  10^7, you won't even try to remember it.  On the other hand,
who could forget that, to within half a percent, pi seconds is a
nanocentury.
		-- Tom Duff, Bell Labs




More information about the Qt-interest-old mailing list