Stack overflow error with signal & slots
-
I am not sure why this is blowing the stack, how can I correct this code?
-
Use
textEdited()
signal instead oftextChanged()
The explanation of why you are having this is that when you call
setText()
a newtextChanged()
signal is emitted and so on to infinity (or up to the limit of the size of the stack that then goes overflow) -
Use
textEdited()
signal instead oftextChanged()
The explanation of why you are having this is that when you call
setText()
a newtextChanged()
signal is emitted and so on to infinity (or up to the limit of the size of the stack that then goes overflow)