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

Problem with quadratic Bezier curve

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 4.7.4, 4.8.3
    • Fix Version/s: None
    • Component/s: GUI: Painting
    • Labels:
      None
    • Environment:
      Windows 7, Mac OS X

      Description

      A quadratic Bezier curve is not drown correctly with a combination of points and pen width. The issue can be reproduced with the Painter Paths Example by adding there the code below and modifying the penWidthSpinBox range to 0, 200 (penWidthSpinBox->setRange(0, 200); ).

      QPainterPath bezierProblemPath;
      bezierProblemPath.moveTo(29.5, 45.5);
      bezierProblemPath.quadTo(31.5, 41, 32, 39);
      
      QPainterPath bezierPath;
      bezierPath.moveTo(29, 45);
      bezierPath.quadTo(31, 41, 32, 39);
      
      renderAreas.push_back(new RenderArea(bezierProblemPath));
      renderAreas.push_back(new RenderArea(bezierPath));
      

      When this modified example is run and the font size is set to 45, the curves will be as shown in the screenshot. The issue can be seen with the path on the left, the one on the right is drawn correctly.

        Attachments

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

          Activity

            People

            • Assignee:
              rodal Samuel Rødal
              Reporter:
              qtcomsupport Qt Support
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes