How to change border color in QT -


in application need use dark grey color border progress. googling changed border color , background color like,

qstring st = qstring ("qprogressbar::chunk {""background-color: #00b82e;""}"); st.append("qprogressbar {""border: 6px solid grey;" "border-radius: 9px;""text-align: center;""background: #00b82e;""}"); progress->setstylesheet(st); 

but not able find out list of border color "border: 6px solid grey;".how find out list of colors "6px solid grey" because need change color border

qt style sheets take lot html cascading style sheets (css).

documentation qcolor::setnamedcolor says color name can 1 of svg color keyword names:

a name list of colors defined in list of svg color keyword names provided world wide web consortium; example, "steelblue" or "gainsboro". these color names work on platforms. note these color names not same defined qt::globalcolor enums, e.g. "green" , qt::green not refer same color.

svg color keyword names: http://www.w3.org/tr/svg/types.html#colorkeywords


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -