I am using this function successfully on windows XP but am not able to do the same on Linux SuSE 10. I tried using the following window managers but to no avail:


metacity wmaker fvwm openbox blackbox kwin(kde default)
Can anyone run the following code and confirm whether it works on your system. Please state the name and version of the underlying window manager that you are using.




Qt Code:
  1. #include <QApplication>
  2. #include <QWidget>
  3. #include <QLabel>
  4.  
  5. using namespace Qt;
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9. QApplication app(argc,argv);
  10.  
  11. QWidget *w=new QWidget(0,0);
  12.  
  13. QLabel *label=new QLabel("This is a label", w, 0);
  14.  
  15. w->setMinimumSize(100,100);
  16.  
  17. w->setWindowTitle("trial window");
  18.  
  19. w->setWindowOpacity(0.123);
  20.  
  21. w->show();
  22.  
  23. return app.exec();
  24. }
To copy to clipboard, switch view to plain text mode 

Thanks

Nupul

PS: What is the alternative to make a widget window transparent?