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

Regression: Horizontal line seen using qDrawBorderPixmap with X11 graphicssystem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.7.0
    • GUI: Painting
    • None

    Description

      To isolate a bug I saw in other projects, I created a QGraphicsObject that paints using qDrawBorderPixmap, the result is that two horizontal lines are seen where the center tiles meet the top or bottom ones.

      Some findings I have:

      • Bug only appears when running with graphicssystem X11. Painting is fine with "raster" or "opengl"
      • Bug is NOT seen in Qt 4.6.3
      • Bug is NOT seen if QPainter::smoothPixmapTransform render hint is unset

      To reproduce, compile and run the attached example. Click the button to change it from light to dark color. Bug is visible in both images but more noticeable in the dark image. Make sure to run the example with "x11" backend

      1. qmake
      2. make
      3. ./borderpixmapbug - graphicssystem x11

      Attachments

        1. borderpixmapbug.tgz
          3 kB
        2. raster-ok.png
          raster-ok.png
          11 kB
        3. x11-artifact.png
          x11-artifact.png
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            fleury Eduardo Fleury
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes