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 )
QCheckBox
stateChanged ( int state )
Qt5.3 introduced the QSignalBlocker class that does exactly what needed in an exception safe way.
if (something) { const QSignalBlocker blocker(someQObject); // no signals here }