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

QMimeType detect gif file return incorrect suffixes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.15
    • Core: Other
    • None
    • Windows

      Using the QMimeType class to detect gif file and returning incorrect suffixes "ts"

      #include <QtWidgets/QApplication>
      #include <QMimeDatabase>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QMimeDatabase db;
          auto mime = db.mimeTypeForFile("1.gif", QMimeDatabase::MatchContent);
          auto suffixs = mime.suffixes();
      
          return a.exec();
      }
      

        1. 1.gif
          18.72 MB
          Wang Brazen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            thiago Thiago Macieira
            crowww Wang Brazen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes