Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Add a stopwatch in QTwidget application.
Mar_60 last edited by
I am new to QT and C++ programming. I have tried to develop a simple app in qt written in c++. I want to add a stopwatch in my app. When I run my app the stopwatch starts and display it on app as well. How can I write a code for it? Can somebody help me?
Which part do you need help with ?
You can use a QTimer + qelapsedtimer for keeping track of time.
Or you can use QDateTime as in this example