A clock in QML

I took on Aaron’s challenge to replicate what I did in Conky using QML.

Here’s a clock in QML, using Plasma time dataengine. Now I only have to figure out how to make the background transparent, or at least translucent to some point.

clock1

About asoliverez

Free Software developer, KDE e.V. member, political activist at SoftwareLibreConCFK, Zen Buddhist, son of a retired physicist and politician ,and a Literature professor; husband of a beautiful QA consultant, and father of the cutest daughter

6 thoughts on “A clock in QML

  1. Emdek
    20/01/2013 at 05:39

    You could take another challenge and create theme for Plasma applet. ;-)
    http://kde-apps.org/content/show.php/Adjustable+Clock?content=92825

    1. 20/01/2013 at 08:42

      Graphic themes are really not my thing, but I’ll look into it

  2. Pascal d'Hermilly
    20/01/2013 at 12:02

    How did you do it?
    I have several times wanted to develop a plasmoid and QML sound like the new black, but I have a hard time getting started.
    I have several times heard of plasmate, but a ‘apt-cache search plasmate’ (kubuntu) yields nothing . It seems like the hidden tool that I will never see.
    Could you post your code?
    I found this QML plasmoid getting started guide now. http://techbase.kde.org/Development/Tutorials/Plasma/QML/GettingStarted
    Could be nice to have a “develop new widgets” button in the widget selector that just led you to a hello world and an api. :-)
    best regards
    Pascal

    1. 20/01/2013 at 12:06

      There are a few examples in git. See here: https://projects.kde.org/projects/playground/base/declarative-plasmoids/
      Also, I was told to get plasmate from git. You’ll find it here: https://projects.kde.org/projects/kdereview/plasmate/repository
      QML is fairly simple, but I have some advantage here as I used to develop in QML for MeeGo.

  3. fasd
    20/01/2013 at 14:02

    Why don’t write QML plasmoid/wrapper for Conky? Setting up conky can be tricky with all this transparency hacks.

    1. 20/01/2013 at 21:52

      Conky bypasses the display manager. It’s unfeasible to have a wrapper for it, other than some config helper.