Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.3.1, 6.4.0 Beta1
-
1879c8a6ba (qt/qtdeclarative/dev) 1879c8a6ba (qt/tqtc-qtdeclarative/dev)
Description
Code
import QtQuick Item { id: root property Item dummy: Item {} Component.onCompleted: { console.log("Before pushing: " + root.children.length) root.children.push(root.dummy) console.log("After pushing: " + root.children.length) } }
QML output
qml: Before pushing: 0 qml: After pushing: 1
qmllint output
Warning: ListPush.qml:9:17: Property "push" not found on type "QQmlListProperty<QObject>" root.children.push(root.dummy) ^^^^
Attachments
Issue Links
- depends on
-
QTBUG-49613 forEach() for QQmlListProperty types
-
- Closed
-
-
QTBUG-58831 QQmlListProperty should emulate JavaScript's Array API
-
- Closed
-
-
QTBUG-99041 Add 'reduce' method to QML list type
-
- Closed
-
For Gerrit Dashboard: QTBUG-104706 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
421206,9 | QmlCompiler: Extend all sequence types with JS Array | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |