[Qt-interest] transparent mainwindow and non transparent widget

David Boddie david.boddie at nokia.com
Mon Jul 12 21:09:20 CEST 2010


Bart Swinnen wrote:

> When using setStyleSheet("background: transparent");
> It sets the background of the mainwindow to black on my WinXP.
> Is there something else to set to have it transparent?
> BTW: I'm using 4.7 beta2

You might need to look at the widget attributes and window flags mentioned
in the QWidget documentation:

http://doc.qt.nokia.com/latest/qwidget.html#creating-translucent-windows

David
-- 
David Boddie
Senior Technical Writer
Nokia, Qt



More information about the Qt-interest-old mailing list