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

QPainter drawText and QFontMetrics not thread safe

XMLWordPrintable

    • ff1b65a58c21a77d00f75581a7492c2fafd67ae8

      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.

        1. qtbug29266.tar
          220 kB
        2. FontRendering.zip
          15 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes