I'm doing transparency on my widget and when trying to render it in a QPixmap or QImage, the alpha is lost. QPixmap::hasAlphaChannel returns true but the actual alpha channel is full opaque.

The transparency works for the widget on the screen but not in the QPixmap.

Any hint ?