O'Reilly logo

PySide GUI Application Development - Second Edition by Venkateshwaran Loganathan, Gopinath Jaganmohan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tracking time using timers

Most of the GUI applications are time bound, and it is extremely important to use timers to capture information about the program runtime and other similar tasks. You may also use timers to generate some event at specified time intervals, calculate the elapsed time for some action, implement a countdown timer, and so on. This section of the chapter covers how to create and use timers in our application, and we will develop a digital clock application explaining the concept of timers.

The classes that are used to create this application in Qt are PySide.QtCore.QTimer and PySide.QtCore.QDateTime. The QTimer class provides a high-level programming interface for timers. It provides repetitive and single-shot timers. Repetitive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required