Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
5.6.0, 5.7.1
-
None
-
Debian GNU/Linux sid amd64
-
2a992040e2ef3f9dab087be3bfac05e28596672b
Description
In Debian, the users have reported that Qt 5.7.1 update breaks Plasma: https://bugs.debian.org/843250
While investigating that bug, I was able to write a small enough test case:
MyLabel.qml
import QtQuick 2.0 Text { property var someText text: "Hello, " + someText.text Component.onCompleted: { console.log(someText); console.log(someText.hasOwnProperty); } }
main.qml
import QtQuick 2.0 MyLabel { someText: Text { text: "world!" } }
With Qt 5.7.1, I get this output:
$ qml ./main.qml qml: QQuickText(0x556bfb6ed290) qml: undefined
So hasOwnProperty method is unavailable. The same goes for any other built-in method, like isPrototypeOf, constructor and so on.
In Qt 5.6.1 (and 5.7.0), it worked fine:
$ qml ./test.qml qml: QQuickText(0x5592b042cf30) qml: function() { [code] }
Attachments
Issue Links
- relates to
-
QTBUG-62820 QtDeclarative does not compile with QNX on MinGW6.x
- Closed
For Gerrit Dashboard: QTBUG-56932 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
176272,2 | Fix more cases where DSE would optimize out too many stores | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
176346,3 | Fix more cases where DSE would optimize out too many stores | 5.7.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |