Qt-interest Archive, August 2006
RE: QAction
Message 1 in thread
Benjamin Ari Schleimer [mailto:BSchleimer@xxxxxxxxxxxx]
> Why do people want to use sender() all of the time??
andre@PCANDRE:/cygdrive/u/src/fq > grep 'sender()' *.cpp | wc
2 13 118
andre@PCANDRE:/cygdrive/u/src/fq > cat *.cpp | wc
70599 199389 2656893
Hardly 'all the time', is it?
> The whole point of signals/slots is to decouple
> the sender from the receiver.
> Otherwise, you might as well use callback
> functions and ignore signal/slots altogether.
My point is that it comes at a price that one might not
be able to pay in the long run.
I only recently had to restructure an non-trivial project
because it turned out that using slot/signal does not
scale up well beyond a few thousand connections.
That's certainly not a problem for most Qt users so I am
not complaining. I just do not want Qt become slower because
of features that are close to 'syntactic sugar'.
> At least use a signalmapper instead.
It's an option, but conceptionally not really different.
Andre'
--
[ signature omitted ]