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:
{
fileMenu
=new QMenu("File",
this);
actionMenu
=new QMenu("Actions",
this);
menubar->addMenu(fileMenu);
menubar->addMenu(actionMenu);
menubar->setStyleSheet("background-color: transparent");
}
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");
}
To copy to clipboard, switch view to plain text mode
What to do??
Bookmarks