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

improvement for class QLineF

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • None
    • GUI: Painting
    • None

      Suggestion:
      It's better to have a construct function to new a QLineF use "P1", "Angle", "Length".
      For example :
      QLineF ( const QPointF & p1, qreal angle, qreal length)
      QLineF ( qreal x1, qreal y1, qreal angle, qreal length)

      And it's better to support interfaces to set QLine within these 3 parameters.
      void setLine ( qreal x1, qreal y1, qreal angle, qreal length)
      void setPoints ( const QPointF & p1, qreal angle, qreal length)

      Reason:
      During developing games these interfaces are needed.
      It waste time to separately call 3 functions.
      If support this API, the performance would be better.

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

            vgt Eirik Aavitsland
            delongyang DelongYang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes