Results 1 to 2 of 2

Thread: to set date and time in the file info of two days back

  1. #1
    Join Date
    Mar 2007
    Posts
    69
    Thanks
    14
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X

    Question to set date and time in the file info of two days back

    hi all
    i am working on QT4.1 on MAC
    i having a problem with the date and time parameters
    by using QFileInfo i am geting the last modified or creation date and time
    but it is setting it the current creation and modified date and time
    but i want to set the date and time of 2 days back or given by user
    means i want to show the date and time of 2 days back in file ->get info


    so i want to know how it can be done using QT4.1 ??is it possible with QT or is it the function of Mac API's ???

    thanks in advance

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

    Default Re: to set date and time in the file info of two days back

    As far as I know you can't alter file attributes using Qt API, you can only retrieve them.

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.