Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99252

QFileInfo class returns stale information for lastModified()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12
    • Core: I/O
    • None
    • Linux/X11, Windows

    Description

      If I create a QFileInfo object for a file. Then modify the file, the time stamp returned by lastModified() is that captured when the QFileInfo object was created, it does not reflect the last modified time of the file it refers to. I need to create a new QFileInfo object each time I want to check to ensure I get the current modification time.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            joe_mueller joe mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes