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

QPainterPath uses QTextLayout internally but caching is enabled by default with no way of disabling it through the QPainterPath API

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.6.2
    • GUI: Painting
    • None

    Description

      When using QPainterPath to render text, a QTextLayout is used internally. QTextLayout has the ability to disable caching but this option is enabled by default inside the QPainterPath code with no way of disabling it externally.
      The attached code reproduces the problem which seems to use ever increasing amounts of memory with each push of the button.

      Attachments

        1. Memtest-orig.zip
          484 kB
          Matthew Cattell
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            cattell Matthew Cattell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes