As I cannot set the alpha channel in any constructor of the QColor class, I am reduced to the following color-setting idiom:
Code:
QColor color; color.setRgba(QRgb(0x88FFFFFF)); glossyGradient.setColorAt(0, color); color.setRgba(QRgb(0x55FFFFFF)); glossyGradient.setColorAt(.1f, color); color.setRgba(QRgb(0x33FFFFFF)); glossyGradient.setColorAt(.5f, color); ...
This really isn't something to look at. Do there exist other possibilities?