[Qt-qml] Extract RGB values from color
Andrew.Christian at nokia.com
Andrew.Christian at nokia.com
Mon Oct 25 16:02:01 CEST 2010
Is there any way to quickly extract R,G, and B values from color property?
I tried the obvious things like:
Item {
property color myColor: "blue"
function getRed() {
return myColor.red();
}
}
but I don't get anything useful. It looks like a QML color is exactly an underlying QColor object, but the QColor object isn't exposing any of the internal color information in a way that I can reach it from QML.
Thanks!
- A
More information about the Qt-qml
mailing list