Results 1 to 10 of 10

Thread: date time to qtextedit??

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Qt products
    Qt4
    Platforms
    Symbian S60
    Thanks
    38
    Thanked 19 Times in 19 Posts

    Default Re: date time to qtextedit??

    Ok... is this?

    Qt Code:
    1. //we already have a QDateTimeEdit called "myDateTimeEdit"
    2. QDateTime datetime = QDateTime::currentDateTime();
    3. myDateTimeEdit.setDateTime(datetime);
    To copy to clipboard, switch view to plain text mode 

    the point I don't understand is a "QDateTimeEdit into a QTextEdit"

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

    briang (16th October 2009)

Similar Threads

  1. time and date issues
    By boog07005 in forum Newbie
    Replies: 5
    Last Post: 20th August 2012, 16:15
  2. QTextEdit loading takes long time
    By sreedhar in forum Qt Programming
    Replies: 12
    Last Post: 21st March 2011, 11:29
  3. How to change the date and time of a system
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 23rd June 2009, 06:55
  4. automatic time and date updating
    By sudheer in forum Qt Tools
    Replies: 1
    Last Post: 17th January 2008, 11:00
  5. to set date and time in the file info of two days back
    By thomasjoy in forum Qt Programming
    Replies: 1
    Last Post: 11th October 2007, 17:54

Tags for this Thread

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.