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

Qpainter draws text with gray edge on qimage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.0 RC2
    • GUI: Painting
    • None
    • windows 10
    • Windows

    Description

      When I try to use qpainter to draw text on qimage, I use the default compositionmode_ Source over mode, but there are some gray edges around the text. However, when I drew on qpixmap instead, the text I drew was the same as I expected. For specific comparison, please refer to the appendix.

      Add:

      According to Jensen's description, I used a demo to reproduce this problem, just like the effect of the newly added image. The newly added zip package is a duplicate demo. You can see that when painter is drawing on qimage, some gray edges will appear, resulting in inconsistent effect with expectation. The main code is contained in paintwidget.cpp .

       

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            mugao peter Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes