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

OpenGL paint DashLine style error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9
    • GUI: OpenGL, GUI: Painting
    • None
    • Linux/X11, Windows

    Description

      I paint two lines with twice moveTo and lineTo pair in QOpenGLWidget paintGL() function,but it show three lines. The middle line is not expected.

      In QDashStroker::processCurrentSubpath function,the first path line fit two (MoveToElement LineToElement pair) lines. Then in QTriangulatingStroker::process function, skipDuplicatePoints() function skip a duplicate point (double convert float lost precision),leave one LineToElement point and line to second line.

      Attachments

        1. test.PNG
          10 kB
          hu deter
        2. test.zip
          1.0 kB
          hu deter
        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
            deter hu deter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes