Unsolved Show QMenu after a while
-
Hello!!
I am trying to show a menu, activated with a QPushButton. I want to press the button and, after 2 seconds, show a QMenu. How can I do this?
Thank you very much!
-
@ivanicy
You can use QTimer.
http://doc.qt.io/qt-5/qtimer.html#singleShot-propQTimer::singleShot(2000, this, [=]{ //open a window });
You registered on this forum JOINED 9 FEB 2017, Have not used QTimer yet? :D.