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:
{
Q_OBJECT
OSDWidget
( QWidget *parent,
const char *name
= "osd" );
...
};
OSDWidget
::OSDWidget( QWidget *parent,
const char *name
){
...
setBackgroundMode( NoBackground );
...
}
class OSDWidget : public QWidget
{
Q_OBJECT
OSDWidget( QWidget *parent, const char *name = "osd" );
...
};
OSDWidget::OSDWidget( QWidget *parent, const char *name )
: QWidget( parent, name)
{
...
setBackgroundMode( NoBackground );
...
}
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
Bookmarks