Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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-prop
QTimer::singleShot(2000, this, [=]{ //open a window });
You registered on this forum JOINED 9 FEB 2017, Have not used QTimer yet? :D.