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

QPainter drawText and QFontMetrics not thread safe

    XMLWordPrintable

Details

    • ff1b65a58c21a77d00f75581a7492c2fafd67ae8

    Description

      Text rendering and accessing font information through QFontMetrics is unstable when done on multiple threads.

      The attached project is a simple demo that renders text and an image of text in a QQuickView. The image of the text is first rendered on a separate thread to a new image before displayed. Both the QML text and the rendered text image will show severe rendering artifacts. Stop the text generation on the other thread and the issues goes away.

      This may to be due to the management of font resources in the Windows font engine plugin.

      Attachments

        1. FontRendering.zip
          15 kB
        2. qtbug29266.tar
          220 kB

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              rmcalister Ryan McAlister
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes