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

QPixmap should be usable from a secondary thread when safe

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • 4.8.x
    • None
    • GUI: Painting
    • None

    Description

      Trying to paint a QPixmap from a thread other than the main fails with error "QPixmap: It is not safe to use pixmaps outside the GUI thread" even when the usage is perfectly safe (rendering to a QImage for example).

      This is blocking threaded WebKit rendering (http://bugreports.qt.nokia.com/browse/QTWEBKIT-19). The only alternative would be to change all QPixmaps in QtWebKit to QImages.

      QTBUG-7848 was suggested that there should be some sort of API for this. Re-filing as requested, but for me the existence of an API is completely secondary.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            akoivisto Antti Koivisto
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes