Quote Originally Posted by Dumbledore View Post
I'm also worried about how to get the returnPressed() method that comes (conveniently) with the Line Edit input widget, but is not included with the Text Edit input widget to work for the Text Edit widget.
You can install an event filter on the text edit and make it emit such signal. See QObject::installEventFilter() and QObject::eventFilter(). Other solution is to subclass QTextEdit and reimplement QWidget::keyPressEvent().

P.S. Please, don't ask two unrelated questions in a single thread.