Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
Description
If you define a property aliasing a variant property, the alias property cannot be converted to anything, which makes it pretty useless. Simple example:
import QtQuick 2.0 Rectangle { width: 800 height: 600 Item { id: item property variant color: Qt.rgba(1, .5, 0, 1) } property alias colorAlias: item.color color: colorAlias // Doesn't work: "Unable to assign QVariant to QColor" //color: item.color // Works as expected }
This works in Qt 4, but fails in Qt 5, both with Qt Quick 1 and 2.
Attachments
Issue Links
- resulted from
-
QTBUG-21711 ShaderEffect crashes when using alias property as source
- Closed