试试这个
#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)
| 归档时间: |
|
| 查看次数: |
2279 次 |
| 最近记录: |