如何将 QTextCursor 从 QTextEdit 移动到另一个 QTextEdit?这是我的代码:
self.textedit = QTextEdit(MainWindow)
self.textedit_2 = QTextEdit(MainWindow)
self.cursor = self.textedit.textCursor()
self.button.clicked.connect(self.moveCursor)
def moveCursor(self):
self.textedit_2.setTextCursor(self.cursor)