View Single Post
Old 04-03-2014, 07:27 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Skeeve View Post
Could you please tell me how to find the available colors for "Text but with a fixed list of permitted values"?
http://www.w3.org/TR/SVG/types.html#ColorKeywords
Quote:
From browsing through the source code, I found that the names are checked against QColor.colorNames(), but I have no idea what's in that list.

I also miss the ability to specify a color in the "#RRGGBB" notation. Or can the set of colors somehow be extended so that I could ad my own color names?
Currently the set of names is fixed. If you want to hack at the source you could probably add # notation as long as the values respect the rules given at http://qt-project.org/doc/qt-4.8/qco...#setNamedColor
chaley is offline   Reply With Quote