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

accelbubble example fail because of Math.hypot()

    XMLWordPrintable

Details

    • dce96572f6e073cdf8eed916365c2cc81e9da4a4

    Description

      The Math.hypot() function is no longer working. This makes the accelbubble example fail (which it didn't do before), since it uses it to calculate the path of the bubble.

      This small example reproduces it:

      import QtQuick 2.1
      import QtQuick.Window 2.1
      
      Window {
          width: 480
          height: 640
          visible: true
          visibility: Window.AutomaticVisibility
      
          Component.onCompleted: {
              var tmp = Math.hypot(3, 4)
              print(tmp)
          }
      }
      

      Output:
      qrc:///main.qml:11: TypeError: Property 'hypot' of object [object Math] is not a function

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            richard Richard Moe Gustavsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes