Use a QSignalBlocker.