2

So I have a QMessageBox that is not closable by the user. I want it to stay active until some work is done, and then close automatically.

I tried MsgBox.close(), but it doesn't work. How do I close that MsgBox? Thanks in advance

Doc
  • 345
  • 4
  • 17

1 Answers1

5

Finally found an answer. Just used MsgBox.done(1) instead of close. Thanks

Doc
  • 345
  • 4
  • 17
  • it's not work on pyqt5 still. are you sure?. in my case it always must be triggered with button without it. it wont do – greendino Jun 24 '20 at 14:47