def mousePressEvent(self, event):
""" Disable stupid dragging feature """
if event.button() == Qt.LeftButton:
newcursor = self.cursorForPosition(event.pos())
self.setTextCursor(newcursor)
event.accept()
super(CommentTextEdit, self).mousePressEvent(event)
评论列表
文章目录