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

QPainterPath should have relative versions of moveTo, lineTo, arcTo, cubicTo and quadTo

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: GUI: Painting
    • Labels:
      None

      Description

      The QPainterPath class currently provides the moveTo(), lineTo(), arcTo(), cubicTo() and quadTo() functions but these only take absolute coordinates. For relative coordinates, i.e. coordinates relative to currentPosition(), it would be useful to have relMoveTo(), relLineTo(), relArcTo(), relCubicTo() and relQuadTo(). For comparison see Cairo: http://www.cairographics.org/manual/cairo-Paths.html#cairo-rel-curve-to and following sections. (Note: Cairo currently doesn't have relArcTo and quadTo/relQuadTo.)

      This would be a simple patch but would be very useful IMHO. I will see if I can whip up a patch.

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jamadagni Shriramana Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes