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?
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 keywordsQt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
To copy to clipboard, switch view to plain text mode
It worked.. Thank You very much...
Bookmarks