As I cannot set the alpha channel in any constructor of the QColor class, I am reduced to the following color-setting idiom:
Qt Code:
  1. QColor color;
  2.  
  3. color.setRgba(QRgb(0x88FFFFFF));
  4. glossyGradient.setColorAt(0, color);
  5.  
  6. color.setRgba(QRgb(0x55FFFFFF));
  7. glossyGradient.setColorAt(.1f, color);
  8.  
  9. color.setRgba(QRgb(0x33FFFFFF));
  10. glossyGradient.setColorAt(.5f, color);
  11.  
  12. ...
To copy to clipboard, switch view to plain text mode 

This really isn't something to look at. Do there exist other possibilities?