I am trying to change a label on a button click and then after 3 seconds I want it to change back to nothing ("")
my code is this:
def apply_click(self):
ui.label_ischanged.setText("Applied!")
and I connected it to my button then I used time.sleep(3) but I know that it stops the program not in the real time and my button stays pushed for 3 seconds and I got not responding for 3 seconds
It sound like a perfect use case for a QTimer object. The timer will run inside the QT event loop and there is no need to have any additional threads involved.