QLineEdit has a signal textEdit() , which is emitted only if the user changes the text, but not when calling setText() ,
So what is equivalent in QTextEdit ? I only see the textChanged() signal, and the documentation states that it is emitted whenever a text document changes.
EDIT
I want to implement an auto save function, with QTimer, of course,
So, when you start editing a document, the timer starts, and when the time runs out, I save the text inside the widget.
source share