Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.1.0
-
None
Description
Have the following QML code:
import QtQuick 2.0
Rectangle {
id: r
property list<QtObject> objs1: r.objs2
property list<QtObject> objs2: [ Rectangle {} ]
}
QML Parser claims that 'r.objs2' is a 'Syntax Error'. On the other hand:
import QtQuick 2.0
import mylib 1.1
// declared in CPP
MyObject {
id: r
// myproperty is a q-property of the CPP class
// with QQmlListProperty<QObject> type
myproperty: r.objs2
property list<QtObject> objs2: [ Rectangle {} ]
}
works without any syntax error claimed.
Expected behavior:
The first example would work and no 'Syntax Error' is claimed.
Attachments
Issue Links
- relates to
-
QTBUG-118053 Create a failure tolerant QML parser
-
- Open
-