[Qt-interest] transparent mainwindow and non transparent widget

Bart Swinnen bart.swinnen at luminex.be
Fri Jul 9 08:29:00 CEST 2010


On 9/07/2010 7:49, Pritam Ghanghas wrote:
>
> By default most of the widgets are transparent. I mean their
> autoFillBackground property is false except for QMainWindows (native
> widgets I guess). if you want them non transparent you can set it to
> true with setAutoFillBackground().
>
> For making QMainWindow, I have always used
> setStyleSheet("background: transparent");
>
>

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



More information about the Qt-interest-old mailing list