anupamgee
29th April 2009, 08:21
hi all,
I want to style a Qmenubar. i want to make it transparent i.e it should take the background color of widget in which it is formed.i am using stylesheet for it .but it is not working..
i used the following code:
TabWindow::TabWindow(QWidget *parent): QWidget(parent)
{
menubar=new QMenuBar(this);
fileMenu=new QMenu("File",this);
actionMenu=new QMenu("Actions",this);
menubar->addMenu(fileMenu);
menubar->addMenu(actionMenu);
menubar->setStyleSheet("background-color: transparent");
}
What to do??
I want to style a Qmenubar. i want to make it transparent i.e it should take the background color of widget in which it is formed.i am using stylesheet for it .but it is not working..
i used the following code:
TabWindow::TabWindow(QWidget *parent): QWidget(parent)
{
menubar=new QMenuBar(this);
fileMenu=new QMenu("File",this);
actionMenu=new QMenu("Actions",this);
menubar->addMenu(fileMenu);
menubar->addMenu(actionMenu);
menubar->setStyleSheet("background-color: transparent");
}
What to do??