Qt Quick Color Declaration (QML)

I have the following statement inside ListViewdeclaratation:

highlight: Rectangle { color: "lightsteelblue"; radius: 5 }

Everything is fine, but I'm just wondering what file is in the declared word lightsteelblue, so I can view other predefined colors?

+4
source share
1 answer

The documentation states that it is usually indicated as an SVG color name and provides this man page . I understand that QML supports the various keyword names listed there.

EDIT: as @dbrianj pointed out (thanks), you can find them in the qtbase / src / gui / painting / qcolor_p.cpp file.

+2

All Articles