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

Suggestion for new drawing functions

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • None
    • GUI: Painting
    • None

    Description

      1: Add an overload to QPainterPath::arcTo() that takes the ending point ant the bulge.
      The arc should be drawn from current point to
      ending point using the bulge to calculate the curve. In CADs, a bulge of
      0 indicates a straight segment between current point and ending point,
      and a bulge of 1 is a semicircle (negative values for the opposite
      direction). This is a very common way of drawing circles in the GUI of CADs.
      Another overload could use a third point instead of the bulge.
      The same suggestion can be applied to QPainter arc functions (arc,
      chord, pie).

      2:In QPainter, drawArc(), drawChord() and drawPie() take the angles with
      "int startAngle, int spanAngle". Add an overload for the QPainter functions listed above that
      takes the angles as "degrees" values as "qreal"?
      This would be easier to use than 1/16th of a degree and should also be
      more precise (because it would be a qreal and not an int).

      3: Other useful features may be:

      • a QPainter::drawChord() that draws only the chord, without the arc (as
        it does now), moreover this function could be added to QPainterPath too;

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes