Skip to content Skip to sidebar Skip to footer

How To Update A Qtextedit In Real-time

i have one UI with QtextEdit, (1) i want to update QtextEdit and main UI can display realtime and no stuck. when use sleep ,not work as i want. (2) i want have make one function

Solution 1:

Try using processEvents():

defmytodo(self):
    self.progress_textEdit.append(u"==== 20 % first step finish")
    QApplication.processEvents()
    # etc...

This is a bit of a workaround though, down the track you might also want to consider using separate threads.

Post a Comment for "How To Update A Qtextedit In Real-time"