[Qt-interest] Transparent QWidget

Girish Ramakrishnan girish at forwardbias.in
Wed Oct 7 08:57:39 CEST 2009


matteo wrote:
> Hi,
> I need create a transparent QWidget. I try with Api Windows
> 
> SetWindowLong(oHandle, GWL_EXSTYLE, GetWindowLong(oHandle, GWL_EXSTYLE)
> WS_EX_LAYERED);
> SetLayeredWindowAttributes(oHandle, 0, (255 * 70) / 100, LWA_ALPHA);
> 
> but I would prefer to use portable instructions.

QWidget::setWindowOpacity() ?

Girish



More information about the Qt-interest-old mailing list