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

Loading QPixmap from a file in non-gui threads is not safe

    XMLWordPrintable

Details

    • 9bbeb7e6e8fb0fdd743b741dce61543fc4246ee2 (qt/qtbase/5.12)

    Description

      Most QPA plugins enable ThreadedPixmap capability and it would seem QPixmap are fine to be used from non-gui threads, however, one of the constructors QPixmap(const QString&, const char *, Qt::ImageConversionFlags) and load() function end up using QPixmapCache which cannot be used from non-gui thread.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-72523
          # Subject Branch Project Status CR V

          Activity

            People

              vgt Eirik Aavitsland
              poikelin Joni Poikelin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes