Results 1 to 2 of 2

Thread: How to get value from timeedit.

  1. #1
    Join Date
    May 2011
    Posts
    120
    Thanks
    9
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default How to get value from timeedit.

    Hi
    I googled a lot for finding value from timeedit but i did not find any function for this. I want to display the value showing in timeedit on label, but i did not find function for getting the value from timeedit.
    Thanks.

  2. #2
    Join Date
    Jun 2011
    Location
    Finland
    Posts
    164
    Thanks
    1
    Thanked 26 Times in 26 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: How to get value from timeedit.

    Just a guess, so you might have try and check with the documentation if that works:

    Qt Code:
    1. ....
    2. edit.dateTime().toString(edit.displayFormat());
    To copy to clipboard, switch view to plain text mode 
    Don't write a post just to thank someone, use "Thanks" button.

  3. The following user says thank you to Rachol for this useful post:

    Niamita (5th September 2011)

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.