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

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

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • None
    • GUI: Painting
    • 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

            Unassigned Unassigned
            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