Results 1 to 3 of 3

Thread: about currentTime()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: about currentTime()

    Hi,

    Qt Code:
    1. QString qCurrentTime = QTime::currentTime().toString(QString("hh:mm:ss"));
    2. myLabelPointer->setText(qCurrentTime );
    To copy to clipboard, switch view to plain text mode 

    Just take a look at QTime methods and functions
    Òscar Llarch i Galán

  2. The following user says thank you to ^NyAw^ for this useful post:

    tkms (2nd February 2009)

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
  •  
Qt is a trademark of The Qt Company.