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

qmllint: property types not recognized when doing type conversion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.x
    • 5.15.0 Beta2
    • QML: Tooling
    • 96098a358fea99c831527b8dbe360817e6376df1 (qt/tqtc-qtdeclarative/6.0)

      Given valid qml

      import QtQuick 2.0
      
      Text {
          id: root;
          property int number: 0
          text: root.number.toString()
      }
      

      Produces warning:

      $ qmllint -U test.qml 
      Warning: Type "int" of member "number" not found at 6:16.
          text: root.number.toString()
      

      Same applies to other type conversions like:

      Text { 
          id: root
          property double value: 0
          text: root.value.toFixed(3) 
      }
      

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

            fawzi Fawzi Mohamed
            jacek.nijaki Jacek Nijaki
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes