Digital clock in a phone
July 15, 2009 by Ariya Hidayat | Comments
Looking at the standard built-in digital clock for our phone, it seems really boring, isn't it? Now that Qt/S60 Tower edition has been released, I thought it's time to get my hands dirty and write few little useful (or useless, depending on your point of view) demos to be enjoyed by millions of loyal S60-based phone users. So here it is, the first Graphics Dojo example designed with S60 platform in mind (of course, it works fine on the desktop, afterall it's just a normal Qt program). Taking the inspiration from some flipping effect (that I stumbled upon, thanks to YouTube) from another digital clock, here it is:
Except of course the screenshot does not capture the beauty of the animation. So Alessandro decided to show-off his fantastic video-making skill and get us the following:
The code is available from the usual repository, check out the digiflip subdirectory. You can give it a try on a desktop, but nothing is more exciting than putting it on your phone. See the S60 instructions page on how to do that, but basically if you have Qt/S60 binary package installed (and other requirements), it's a matter of:
qmake
make
make release-gcce
createpackage -i digiflip_gcce_urel.pkg
I included three animation effects: Slide, Flip, and Rotate (all in 400 lines of Qt/C++ code). You can switch between them using the softkey (see the source code to know how easy it is to add simplistic softkey feature to your application) or using D-pad (only for non-touch devices).
Blog Topics:
Comments
Subscribe to our newsletter
Subscribe Newsletter
Try Qt 6.5 Now!
Download the latest release here: www.qt.io/download.
Qt 6.5 is the latest Long-Term-Support release with all you need for C++ cross-platform app development.
Explore Qt World
Check our Qt demos and case studies in the virtual Qt World
We're Hiring
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.Henkilön Qt (@theqtcompany) jakama julkaisu