Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.4.0 Alpha
-
None
-
CentOS 7.0
-
f876562de8eb978cea39fe72e76c49ae51ff2f97 (qtdeclarative)
Description
readonly properties of type QtObject (or derivative) are not possible. Running the the following example with qmlscene:
import QtQuick 2.3 Item { readonly property QtObject myProperty: QtObject { } }
Results in the error:
file:///tmp/ReadOnlyQtOjbectProperty.qml:3 Expected token `;' file:///tmp/ReadOnlyQtOjbectProperty.qml:3 Expected a qualified name id
By simply removing the readonly keyword, the example runs fine.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-14733 spurious "issue" about readonlyObjectProperty.qml
- Reported