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

Crashes using QFileIconProvider

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.5.0
    • Fix Version/s: None
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Environment:
      Reprocable on Windows 8.1, MAC 10.10, 10.8.5

      Description

      Hi there!
      After porting our applications from Qt 5.4.2 to 5.5.0, I have strange crashes concerning icons coming from the QFileIconProvider set in QComboBoxes. Luckyli for me I can reproduce the crashes with your 'basicdrawing'-example, where I put two icons into the first two entries of the shapeComboBox, just changing the following lines of window.cpp:

      //! [1]
      Window::Window()
      {
          QFileIconProvider provider;
          QIcon icon(provider.icon(QFileInfo("c:/Users/Harro Pahl/Pictures")));
          QIcon icon2(provider.icon(QFileInfo("c:/")));
      
          renderArea = new RenderArea;
      
          shapeComboBox = new QComboBox;
          shapeComboBox->addItem(icon, tr("Polygon"), RenderArea::Polygon);
          shapeComboBox->addItem(icon2, tr("Rectangle"), RenderArea::Rect);
      

      This leads immediately to a crash when painting the combobox via QComboBox::paintEvent (the stack and variables are added as jpg to this ticket).

      Thanks for your investigations in advance and greetings from Kiel!
      Harro Pahl

        Attachments

        1. fileiconcrash.jpg
          fileiconcrash.jpg
          134 kB
        2. qtbug47808.zip
          12 kB

          Issue Links

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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              harro.pahl@silverfast.com Harro Pahl
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes