Autoscroll PyQT QTextWidget

后端 未结 3 924
慢半拍i
慢半拍i 2021-02-05 18:15

How can I autoscroll to the bottom of my QTextEdit

in my GUI init function

self.mytext = QTextEdit()
self.cursor = QTextCur         


        
3条回答
  •  误落风尘
    2021-02-05 18:33

    moveCursor method should do that. e.g.:

    self.mytext.moveCursor(QtGui.QTextCursor.End)
    

提交回复
热议问题