Anyway to setText on QLineEdit without emitting signals?
-
Hi,
-
Is there a way to call setText on instances of QLineEdit that will not trigger emission of signals?
-
Hi,
-
@SPlatten said in Anyway to setText on QLineEdit without emitting signals?:
@SPlatten , replaced with call to QLineEdit::textEdited, no difference
I'm not sure what that means, but
setText()should not causetextEdited()signal, onlytextChanged(). That's supposed to suffice for most scenarios. If you really want more than that then @SGaist 'sQSignalBlocker. -
@SPlatten said in Anyway to setText on QLineEdit without emitting signals?:
@SPlatten , replaced with call to QLineEdit::textEdited, no difference
I'm not sure what that means, but
setText()should not causetextEdited()signal, onlytextChanged(). That's supposed to suffice for most scenarios. If you really want more than that then @SGaist 'sQSignalBlocker.