July 2018
Intermediate to advanced
462 pages
12h 2m
English
In this code, you can see that an instance of QTimer is created with the named timer, and its timeout() signal is connected to showlcd(). Whenever timeout() is generated, the showlcd() method will be invoked. Also, via start(), you set the timer to generate a timeout() signal after every 1,000 milliseconds.
In the showlcd() method, you fetch the current system clock time, convert it into a string data type, make it appear in the HH:MM format, and display it with the LCD Number widget, as shown in the following screenshot:

Read now
Unlock full access