Results 1 to 13 of 13

Thread: Is there a clock component?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2013
    Posts
    102
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Is there a clock component?

    Hi everyone. I wonder if there is some clock or digital clock component available that I could use in my gui desktop app. I need just to display time in a more pretty way, thats all. I've checked the compenents in my Qt Creator, but don't see any. Thanks for suggestions.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Is there a clock component?

    You could combine a couple of QLCDNumber objects into a custom component.

    Cheers,
    _

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Is there a clock component?

    No bundled ready-to-go clocks.

    A simple clock along the lines anda_skoa suggested:
    Digital Clock Example
    An analogue clock you could adapt to render however you like:
    Analogue Clock Example

  4. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Is there a clock component?

    Qwt has a widget ( QwtAnalogClock ) but no QML component. But when writing a desktop application I would consider widgets still being the better option than going with QML.

    Uwe

  5. #5
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Is there a clock component?

    Quote Originally Posted by Uwe View Post
    Qwt has a widget ( QwtAnalogClock ) but no QML component. But when writing a desktop application I would consider widgets still being the better option than going with QML.
    You mean QtQuick, but yes

    Cheers,
    _

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is there a clock component?

    Quote Originally Posted by anda_skoa View Post
    You mean QtQuick, but yes
    He probably means both
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    May 2015
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Is there a clock component?

    Quote Originally Posted by ChrisW67 View Post
    No bundled ready-to-go clocks.

    A simple clock along the lines anda_skoa suggested:
    Digital Clock Example
    An analogue clock you could adapt to render however you like:
    Analogue Clock Example
    Thanks for link advice

Similar Threads

  1. Placing Clock on Title Bar
    By GG2013 in forum Newbie
    Replies: 2
    Last Post: 1st October 2013, 03:16
  2. How to change Linux system clock by Qt
    By wisconxing in forum Qt Programming
    Replies: 3
    Last Post: 7th September 2011, 07:04
  3. QObject and alarm clock
    By been_1990 in forum General Programming
    Replies: 2
    Last Post: 13th December 2009, 17:00
  4. QPainter and Qt analog clock example
    By Diph in forum Qt Programming
    Replies: 2
    Last Post: 25th September 2009, 17:34
  5. clock() function
    By mickey in forum General Programming
    Replies: 6
    Last Post: 12th September 2006, 14:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.