use setReadOnly in QTextEdit