Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 9.0.0
-
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
- is duplicated by
-
QTCREATORBUG-28517 List type initialization not properly recognized
- Closed