I had the assumption that:
QtCore.QSignalBlocker(mywidget.setValue(somevalue))
QtCore.QSignalBlocker(mywidget.setValue(somevalue))
To copy to clipboard, switch view to plain text mode
Would be somewhat equivalent to:
mywidget.blockSignals(True)
mywidget.setValue(somevalue)
mywidget.blockSignals(False)
mywidget.blockSignals(True)
mywidget.setValue(somevalue)
mywidget.blockSignals(False)
To copy to clipboard, switch view to plain text mode
But, I've found that the latter actually does block the signals while the former appears to do "nothing".
I must be missing something. Anyone have some insight?
Bookmarks