[Qt-interest] Block all signals of ui class

Matthias Pospiech matthias.pospiech at gmx.de
Wed Jun 30 09:16:55 CEST 2010


Tony Rietwyk schrieb:
> Hi Matthias, 
>
> Why don't you just change the slots to check for the 0 pointer?  Or add a
> boolean to say when the device is ready.  All of our forms use at least one
> boolean to control the slot execution.  
>
>   
In all forms where I do not use the connectSlotsByName-feature I have 
done the signalslot connection
only after the device was ready. Now I can not do that,  so I am going 
to follow your approach of
testing in each slot if the call is valid.

@ Lucas: I had already written that blockSignals is not the way I want 
to go (because it has to be applied for each widget)
@ Irfan Omair: I do not connect the signals myself, this is done 
automatically with the connectSlotsByName-feature.

Matthias



More information about the Qt-interest-old mailing list