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

OpenGL paint DashLine style error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.9
    • Fix Version/s: None
    • Component/s: GUI: OpenGL, GUI: Painting
    • Labels:
      None
    • Platform/s:
      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.zip
          1.0 kB
        2. test.PNG
          test.PNG
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            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