[Qt-qml] rgb colors does not work?
michael.brasser at nokia.com
michael.brasser at nokia.com
Fri Oct 1 02:22:51 CEST 2010
Thanks for the heads up, I've updated the docs to show 1 rather than 255 (commit 1e2958e7a12de7cba30b02657c02320945bb1e3d).
Michael
On 01/10/2010, at 1:49 AM, ext Bartosh Wroblevksy wrote:
thanks, i just saw in the docs.
However, an example in
http://doc.qt.nokia.com/4.7/qml-qt.html
displays
import Qt 4.7
Text {
color: Qt<http://doc.qt.nokia.com/4.7/qt.html>.rgba(255, 0, 0, 1)
text: Qt<http://doc.qt.nokia.com/4.7/qt.html>.md5("hello, world")
}
<http://doc.qt.nokia.com/4.7/qml-qt.html>which would lead me to believe that the range is from 0 to 255. Maybe this could be updated.
Anyways thanks,
Bartosh
________________________________
Date: Thu, 30 Sep 2010 18:39:00 +0300
From: turunen at iki.fi<mailto:turunen at iki.fi>
To: qt-qml at trolltech.com<mailto:qt-qml at trolltech.com>
Subject: Re: [Qt-qml] rgb colors does not work?
The range of all components (not just alpha) goes from 0 to 1. So essentially you're maxing out all components -> the color is white.
Juha
On Thu, Sep 30, 2010 at 6:24 PM, Bartosh Wroblevksy <bartosh at live.com<mailto:bartosh at live.com>> wrote:
Hi,
With Qt 4.7.0
import Qt 4.7
Rectangle {
width:100
height:100
color: Qt.rgba(73, 85, 56, 1)
}
does not display the correct color. The rectangle is all white. What am I doing wrong?
Thanks,
Bartosh
_______________________________________________
Qt-qml mailing list
Qt-qml at trolltech.com<mailto:Qt-qml at trolltech.com>
http://lists.trolltech.com/mailman/listinfo/qt-qml
_______________________________________________ Qt-qml mailing list Qt-qml at trolltech.com<mailto:Qt-qml at trolltech.com> http://lists.trolltech.com/mailman/listinfo/qt-qml
<ATT00001..txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101001/75a6ee5d/attachment.html
More information about the Qt-qml
mailing list