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

QML tools complain about missing QJSPrimitiveValue::toString()

XMLWordPrintable

      Code

      import QtQuick
      
      Window {
          width: 400
          height: 300
          title: (Number(1) + Number(2)).toString() // Member "toString" not found on type "QJSPrimitiveValue" [missing-property]
          visible: true
      }
      

       

      Notes
      qmllint doesn't like the code above, but it is perfectly happy with the following:

      • title: Number(3).toString()
      • title: Number(1) + Number(2)

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

            qtqmlteam Qt Qml Team User
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes