Hi every one ,

I am using QT4.4.3 under windows XP . I am trying to change the style of toolbar of mainwindow that mean I am trying to change the color of the tool bar , but i am not able to do it . The code I tried is

Qt Code:
  1. QToolBar *fileToolBar = new QToolBar(this);
  2. fileToolBar ->setStyleSheet("QToolBar{background:gray;}");
To copy to clipboard, switch view to plain text mode 

So please suggest me how to change the style of the tool bar so that i can set my own color or gradient .


Regards
Sudheer.