Yes, you can construct a custom color with QColor( R, G, B ).
Look at QColor.

Regards