Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.
adding timer to QInputDialog
Eyal Erez last edited by
I'm trying to add 30 sec timer to QInputDialog.
From reading around i see that it isn't that simple because timer is using SIGNAL to alert it's over.
So my question know on a simple way to add a timer ??
if not, can anybody willing to help me generate a new widget :-)
What do you want to do with that timer ?
artwaw last edited by
The simplest way if you not wish to alter QInputDialog would be to create timer in the class that calls for it then connect signal from timer to one of the public slots of QInputDialog.
Please read about signals and slots here, QInputDialog has some public slots one might use inherited from QDialog and QWidget.
Charlie_Hdz last edited by
I think that your question is not specifique enough
What you can do is to derive from QWidget (creating a new class)
In this class compose a QTimer object:
Then your widget is a empty box that have the functionality of a QTimer....
If you required that the QWidget has only one shot per click (guessing), you would like to use the static function SingleShot http://doc.qt.io/qt-5/qtimer.html#singleShot