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

QFileIconProvider crash on icon(IconType) when no instance of QApplication is present

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.9.2
    • None
    • Qt 5.9.2

      Windows 10 Pro

    Description

      The call ip.icon crashes the application.

      int main(int argc, char *argv[])
      {   
          QFileIconProvider ip;
          QIcon icon = ip.icon(QFileIconProvider::File);
          ...
      }
      
      ASSERT: "!"No style available without QApplication!"" in file kernel\qapplication.cpp, line 1065
      

      Attachments

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

        Activity

          People

            richard Richard Moe Gustavsen
            lqsa lqsa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes