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

QPainter::drawText does not correctly apply opacity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.1, 5.11.1
    • None
    • Windows

    Description

      When drawing multiline text with a set opacity, QPainter ignores that opacity on the first line of text when the underlying device is a QPrinter.

      Attached are a project that reproduces the issue and 2 screenshots showing the difference between drawing to a QWidget and drawing to a QPrinter.

      In the attached sample I'm using a newline to make the text multiline but the same happens when using WordWrap.

      Attachments

        1. COYKlNp.png
          COYKlNp.png
          6 kB
        2. gTa6WCP.png
          gTa6WCP.png
          68 kB
        3. QtGuiApplication1.zip
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            fsilva Francisco Silva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes