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

accelbubble example fail because of Math.hypot()

XMLWordPrintable

    • dce96572f6e073cdf8eed916365c2cc81e9da4a4

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes