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

qmllint: property types not recognized when doing type conversion

    XMLWordPrintable

Details

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

    Description

      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) 
      }
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes