[Interest] What is Qt.red for in QML?
Jérôme Godbout
jerome at bodycad.com
Fri Feb 6 00:33:20 CET 2015
you can use the string version
color: 'red'
or rgba value
color: Qt.rgba(1,0,0,1)
> On Feb 5, 2015, at 6:07 PM, Jason H <jhihn at gmx.com> wrote:
>
> Rectangle {
> ...
> color: "red" // works
> color: Qt.red // does not work "Unable to assign int to QColor"
> }
>
> Why? What is Qt.red for then?
>
> Thanks
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list