Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.0.1
-
None
-
Ubuntu Raring 13.04
Description
When returning a color that has an alpha value different from 1.0 from a JavaScript function, the alpha value is lost and set to 1.0
Program reproducing the issue:
import QtQuick 2.0
Item {
property color origColor: Qt.rgba(1.0, 1.0, 1.0, 0.2)
property color destColor: {
if (true)
}
Component.onCompleted: print("Completed, destColor.a =", destColor.a)
onDestColorChanged: print("Changed, destColor.a =", destColor.a)
}