Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0
-
None
Description
Following code
import QtQuick 2.0 Item { property color color: Qt.rgba(0.3, 0.3, 0.3, 0.3) property color v4Result: true ? color : "transparent" Component.onCompleted: { console.log("Original color rgba", color.r, color.g, color.b, color.a) console.log("Color through V4", v4Result.r, v4Result.g, v4Result.b, v4Result.a) } }
outputs
Original color 0.30000762951094834 0.30000762951094834 0.30000762951094834 0.30000762951094834 Color through V4 0.2980392156862745 0.2980392156862745 0.2980392156862745 1
Instead the color should stay semi-transparent.