What am I missing?
Calling setWindowOpacity() in the constructor has no effect, yet calling setWindowOpacity after widget instantiation works, e.g.
(Win 7, Qt 5.1.1)

Qt Code:
  1. AboutWin::AboutWin(QWidget *parent) :
  2. QMainWindow(parent),
  3. ui(new Ui::AboutWin)
  4. {
  5. ui->setupUi(this);
  6. setWindowOpacity(0.85); // this does nothing here!
  7. }
  8.  
  9. void MainWindow::on_actionAbout_triggered()
  10. {
  11. AboutWin *win = new AboutWin;
  12. win->show();
  13. win->setWindowOpacity(0.85); // this works here but not in constructor
  14. }
To copy to clipboard, switch view to plain text mode