Results 1 to 14 of 14

Thread: Converting VC++ qreal to QDate

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2007
    Posts
    4
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Converting VC++ qreal to QDate

    I don't have any idea as to how we can store a particular date/time in double. Can you please provide me any pointers or article or code snippet, it would be of much help to me.

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Converting VC++ qreal to QDate

    Quote Originally Posted by sashishk View Post
    I don't have any idea as to how we can store a particular date/time in double.
    You just have to count the number of days that have passed since certain date.

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

    Default Re: Converting VC++ qreal to QDate

    I'm afraid we don't have an idea too. I can point you to MSDN to look for the function you mentioned in hope there will be a broader explanation there.

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.