We have a QCheckBox
object, when user checks it or removes check we want to call a function so we connect our function to stateChanged ( int state )
signal. On the other hand, according to some condition we also change the state of QCheckBox
object inside code, and this causes the unwanted signal.
Is there any way to prevent firing signal under some conditions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…