what events are you talking about ?
May be you looking for QObject::blockSignals