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

Looks like there is a mistake on QLineF documentation page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.8.6, 5.4.0
    • Fix Version/s: 4.8.7, 5.4.1
    • Component/s: Documentation
    • Labels:
    • Commits:
      Qt 4: 6d5a2db97d6f19f4ccc446473adc40a922e1a7ea Qt 5: dd4b09ae1aed3dd20c46ec240a43d70dc13f1ee4

      Description

      It seems that there is a mistake on the QLineF class reference page (http://qt-project.org/doc/qt-4.8/qlinef.html):
      The intersect() function determines the IntersectType for this line and a given line, while the angle() function returns the angle between the lines
      It should be angleTo() instead of angle(), because in accordance with documentation:
      angle() – Returns the angle of the line in degrees
      and
      angleTo(const QLineF & line) – Returns the angle (in positive degrees) from this line to the given line.

        Attachments

        For Gerrit Dashboard: QTBUG-44309
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            sgaist Samuel Gaist
            Reporter:
            EvgeniyE Evgeniy Echkalo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes