Hi,
In my application my main Widget - 'centralWidget' is the child of the main window class, that is its parent isn't a widget but rather the main class of the application.
I am trying to set 'centralWidget' to be transparent, that is rgba = 0,0,0,0 (alpha blending).
here is what I have tried:

centralWidget->setStyleSheet("background: transparent");

or
QPalette pal = ui->centralWidget->palette();
QColor BGcolor(0,0,0,0);
pal.setColor(ui->centralWidget->backgroundRole(), BGcolor);
centralWidget->setPalette(pal);
centralWidget->setAttribute(Qt::WA_NoSystemBackground);


both make the children of 'centralWidget' transparent but do nothing to 'centralWidget'.

any leads or ideas will be very appreciated.
thanks,
Ido.