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

QMimeDatabase::mimeTypeForFile has changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.7, 6.8
    • Core: I/O
    • None
    • macOS

      #include <QMimeDatabase>
      int main(int argc, char *argv[])
      {
          qDebug() << QMimeDatabase().mimeTypeForFile("/path/to/test.tar.gz");
          return 0;
      }
       

      This code returns fundamentally different types between Qt 6.7.2 and Qt 6.8.

      In 6.7.2 it returns "application/x-compressed-tar", in 6.8 it returns "application/gzip".

       

      gzip is not correct, since gzip is a single compressed file, while x-compressed-tar is an archive of files, compressed with gzip.

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

            dfaure_kdab David Faure
            madwinter Marcus Tillmanns
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes