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:
Qt Code:
  1. TabWindow::TabWindow(QWidget *parent): QWidget(parent)
  2. {
  3. menubar=new QMenuBar(this);
  4. fileMenu=new QMenu("File",this);
  5. actionMenu=new QMenu("Actions",this);
  6. menubar->addMenu(fileMenu);
  7. menubar->addMenu(actionMenu);
  8. menubar->setStyleSheet("background-color: transparent");
  9. }
To copy to clipboard, switch view to plain text mode 
What to do??