Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28238

Update QML code scanner for new QML syntax

    XMLWordPrintable

Details

    • dc6790767 (master)

    Description

      This is valid code in Qt 6.4.0 (see https://doc.qt.io/qt-6/qml-list.html#using-the-list-type ), but it is still flagged as an error by the code analyzer in Qt Creator 8.0.1. It builds and runs fine:

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
      
          property list<int> intList: [1, 2, 3, 4]
      
          Component.onCompleted: console.log(`Array of ${intList.length} items: [${intList}]`)
      }
      

       

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-28238
          # Subject Branch Project Status CR V

          Activity

            People

              sami.shalayel Sami Shalayel
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes