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

QPainter::DrawLine() wrong position at QGlWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.8.0
    • GUI: OpenGL, GUI: Painting
    • None

    Description

      Lines are painted in a QGLWidget one pixel too far left. The whole can be checked in "Linebug.zip". Rectangles are not affected by this bug. In Qt, version 4.7.4, it works as expected. If i paint a Line with width > 1 px, the position will be correct.

      The lower half of the lines were drawn on a pixmap, which was also placed into the QGLWidget at pos 0,100 .:

      Attachments

        1. bug.png
          bug.png
          31 kB
        2. Linebug.zip
          34 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            dazedly Jens Dunzweiler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes