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

QTemporaryFile::rename does not document that it can only rename, not copy+delete like QFile::rename

XMLWordPrintable

    • macOS
    • 612f5cf9a1 (qt/qtbase/dev) 612f5cf9a1 (qt/tqtc-qtbase/dev) 185f3c26d4 (qt/qtbase/6.3) 185f3c26d4 (qt/tqtc-qtbase/6.3) 612f5cf9a1 (qt/tqtc-qtbase/6.4) a11c34b202 (qt/tqtc-qtbase/6.2) 351b894171 (qt/tqtc-qtbase/5.15)

      QTemporaryFile::rename() fails if the destination is on external disk.

      QFile::rename() on the same disk works. 

      I couldn't find it mentioned in the documentation. If this is intended, maybe it is worth making this private so that it is not used accidentally.

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

            thiago Thiago Macieira
            badbishop Michal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes