-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6.0
-
a9818146f (dev)
There are two inconsistency in list property of QML.
1. trailing comma is only allowed for id list
2. mixing id and declaration in list is not allowed.
import QtQuick 2 Item { Item { id: item1 } Item { id: item2 } property list<Item> list2: [ item1, item2, // OK, trailing comma is allowed ] property list<Item> list1: [ Item {}, Item {}, // Error: trailing comma is not allowed here ] property list<Item> list3: [ Item {}, item1 // Error: mixing id and item declaration is not allowed ] }
- depends on
-
QTBUG-118053 Create a failure tolerant QML parser
-
- Open
-
For Gerrit Dashboard: QTBUG-119504 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
683401,1 | QtQml: Support trailing comma in list properties | 6.10 | qt/qtdeclarative | Status: NEW | 0 | 0 |
553757,1 | QML: Allow trailing comma in lists of QML objects | dev | qt/qtdeclarative | Status: ABANDONED | 0 | -1 |
682825,2 | QtQml: Support trailing comma in list properties | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |