Results 1 to 5 of 5

Thread: QTime::currentTime().toString() + add. text

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Posts
    33
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QTime::currentTime().toString() + add. text

    Hi Marcel,

    yeah with some small cosmetic change exactly what i needed.
    guess i lack some basic c++ knowledge.

    but basicly the idea with currentTime().toString was ok, right ?
    Or is there any other method to get a timestamp as String which you would prefer ?

    Thank you very much for the fast & helpful response.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTime::currentTime().toString() + add. text

    You can also format the time. The format parameter can be passed to toString. Take a look at available format strings: http://doc.trolltech.com/4.3/qtime.html#toString

  3. #3
    Join Date
    Dec 2007
    Posts
    33
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QTime::currentTime().toString() + add. text

    Hi Marcel,

    I guess you misunderstood my "with some cosmetc changes"-part.
    i already did those small changes

    But thanks again for the link and the offered help.

    Best regards
    ape

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. Problem pasting text into a QTextEdit
    By Spockmeat in forum Qt Programming
    Replies: 8
    Last Post: 14th March 2009, 14:36
  3. Replies: 1
    Last Post: 30th November 2007, 10:03
  4. Editable text in QGraphicsView
    By wysota in forum Qt Programming
    Replies: 8
    Last Post: 24th February 2007, 15:30
  5. visible text of textedit
    By regix in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2006, 09:02

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.