试试这个
#QTextEdit.setTextInteractionFlags (self, Qt.TextInteractionFlags flags)
#QTextEdit.setText (self, QString text)
textEdit.setTextInteractionFlags (QtCore.Qt.NoTextInteraction)
textEdit.setText ('How to make Qtextedit text and non-selectable?')
Run Code Online (Sandbox Code Playgroud)