SetWindowOpacity doesn't work
I am using qt 5.1.0 on windows 7 I opened simple GUI application added one button to main window. After you click on it QDialog is opened (or Qlabel, QSplashScreen etc. by ->show() ) . I want both of this windows to be transparent:
QDialog *qd = new QDialog();
this->setWindowOpacity(0.5); //this work
qd->setWindowOpacity(0.5); // this is not
Why it is not working on other objects than mainwindow? Even if I don't create MainWindow anything else can be transparent I tried other things too:
QGraphicsOpacityEffect *opacityEffect = new QGraphicsOpacityEffect;
I asked on other forum when somone told me that for his version 4.8.4 my code works fine.
Thanks for any help!
I checked in my PC in home (5.0.1 windows7) this code works fine. Can somone else on 5.1.0 try out?