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

QLineF::angleTo different from deprecated QLineF::angle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.15.1
    • 5.15.0
    • Core: Other
    • None
    • All
    • 95b5a56071b30217735a2fc37ab25c347ca437b6 (qt/qtbase/dev) 3365075abd3f9af9e5bc788481c932dc86814739 (qt/qtbase/5.15)

      Switching from qt 5.12.8 LTS to 5.15.0 LTS I found that QLineF::angle(const QLineF &line) was deprecated and angleTo() was the replacement. However they give different results. In the example attached the old angle() gives a result of 150 degrees and the new angleTo() gives a result of 210 degrees. So as they are not the same. Either a) they should be the same or b) the old angle() should not be deprecated.

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

            qt.team.graphics.and.multimedia Qt Graphics Team
            chortlemortal David Casper
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes