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 <jh...@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@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest