Auto close QMessageBox

前端 未结 5 2147
猫巷女王i
猫巷女王i 2020-12-31 19:20

I\'m building a Qt Symbian Project and I want to show a notification for the user that should auto close after some seconds. I have seen that Nokia uses this a lot in their

5条回答
  •  独厮守ぢ
    2020-12-31 19:56

    This may help someone,

    msgBox.button(QMessageBox::Ok)->animateClick(5000);
    

    The messageBox closes after 5 seconds.

提交回复
热议问题