1 2 3 4 5 6 7
#include "textedit.h" void TextEdit::focusOutEvent(QFocusEvent *ev) { QTextEdit::focusOutEvent(ev); emit editingFinished(); }