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

Math.max / Math.min implementation incomplete

    XMLWordPrintable

Details

    • 98849309a (dev)

    Description

      Code using Math.max like in

      Window {
          id: root
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          property int maxi: Math.max(10, 20, 30)
      }
      

      compiles with

      Warning: main.qml:16:29: Could not compile binding for maxi: Cannot generate efficient code for call to property 'max' of void of GlobalObject::Math with type Math [compile
      r]
          property int maxi: Math.max(10, 20, 30)
                                  ^^^
      

      , while it works when using only two parameters.

       

      Attachments

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

        Activity

          People

            olivier.decanniere Olivier De Cannière
            cajus Cajus Pollmeier
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes