I am setting the foreground of a QTextCharFormat named as qf.setforeground(Qt::yellow);... There are number of color options but there is no color option for Orange. Can anyone suggest me how to set this to orange color?
Printable View
I am setting the foreground of a QTextCharFormat named as qf.setforeground(Qt::yellow);... There are number of color options but there is no color option for Orange. Can anyone suggest me how to set this to orange color?
You can use QColor constructor that takes rgb values:
or use one of the color names listed here : SVG color keywords
It worked.. Thank You very much...