[Qt-interest] Fwd: problem with signal of QListWidget

Andreas Pakulat apaku at gmx.de
Sat Jun 20 15:54:06 CEST 2009


On 20.06.09 13:34:27, Donal O'Connor wrote:
> The error only shows when you run the program, it isn't during the compile
> stages.
> 
> The signatures of the methods/slots are not compatible.
> 
> The signal signature must be the same as the slot's.

No they do not have to, you can connect a signal with n paramters to a slot
with n-m as long as the types of the first n-m parameters of signal and
slot are compatible.

So in the example shown it should work.

Andreas

-- 
You will be held hostage by a radical group.



More information about the Qt-interest-old mailing list