Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.8.0, 5.9.0 Beta 4, 5.9.0, 5.12.4
-
Windows 7 Pro SP1
Qt 5.8 windows X64
MSVC 2015
-
c550b71fb93279a1788aec809c874b779d88b987 (qt/qtdeclarative/5.15)
Description
The following code would crash on windows platform, but it seems fine on mac.
It would result in error:
ASSERT: "propertyData && !propertyData->isAlias()" in file qml\qqmlproperty.cpp, line 868
import QtQuick 2.7 import QtQuick.Controls 2.0 ApplicationWindow { id: _window property string userFontFamily: "Times New Roman" Column { Button { id: _button text: "CLICK ME" onClicked: { _box.font.family = Qt.binding(function() { return _window.userFontFamily; }); } } Rectangle { id: _box width: 100 height: 100 property alias font: _text.font Text { id: _text anchors.fill: parent text: "Text" } } } }