Derive the output window from QTextEdit.