BTW. Your method for updating alpha is very slow. How about this?
Qt Code:
  1. QPixmap &setAlpha(QPixmap &px, int val)
  2. {
  3. QPixmap alpha = px;
  4. QPainter p(&alpha);
  5. p.fillRect(alpha.rect(), QColor(val, val, val));
  6. p.end();
  7. px.setAlphaChannel(alpha);
  8. return px;
  9. }
To copy to clipboard, switch view to plain text mode 
That method worked beautifully! I didn't even think of using QPainter to handle the painting... *bonks self* Thanks a bunch!