Skip to content

Transparent, Super smooth Qt4Clock :: Experiment

Tuesday, 4 April 2006  |  siraj

Link to My Home page for More screenshots

After seeing cairo clock.. I wanted to simulate the same thing using Qt4 .. just to show how simple it is to do it with new Qt 4.1.1. it's a matter of getting a transparent widget (using few Xlib commands and drawing on it with QPainter paint commands (Clock hands and Clock face) with Time. and I was amazed by the smooth ness and the images quality of the output and also the speed at it was happening.Most of all it's almost Zero length code to achive this effect (less than 400 lines) and the Clock glass is drawn using only Qt4 paint commands. I'm going to place some screenshots and also the source for this simple two classed clock whitch is a nince a eye -kandy, too sad to send it to trash can I shoudl some make it more usable!. I think this also shows that wonder full things to come with KDE 4 UI's and widgets .. and plasma.



well, 2007 is going to be a busy year for KDE artists!...for sure.. I will put some clock themes and source on my home page..I must draw the date and also wirite some Keybord event listners, so that some one can use it.More clock stuff