Hi,
I'm trying to add an "on screen display" object to my application like amarok's osd. So reading Amarok 1.4.9 source code I have found the code in the object in the class OSDWidget of the files osd.h/osd.cpp. Here a sample:

Qt Code:
  1. class OSDWidget : public QWidget
  2. {
  3. Q_OBJECT
  4.  
  5. OSDWidget( QWidget *parent, const char *name = "osd" );
  6. ...
  7. };
  8.  
  9. OSDWidget::OSDWidget( QWidget *parent, const char *name )
  10. : QWidget( parent, name)
  11. {
  12. ...
  13. setBackgroundMode( NoBackground );
  14. ...
  15. }
To copy to clipboard, switch view to plain text mode 

How port that line in qt4? Perhaps the solution is QWidget::setBackgroundRole but there isn't a Qt::NoBackground.

Or anybody knows a simple code?

Thanks