You can use QColor constructor that takes rgb values:
Qt Code:
  1. qf.setforeground(QColor(255, 165, 0));
To copy to clipboard, switch view to plain text mode 
or use one of the color names listed here : SVG color keywords
Qt Code:
  1. qf.setforeground(QColor("orange"));
To copy to clipboard, switch view to plain text mode