Hi Every body

I'm tryng to apply stylesheet for both pushbutton and tool button through qss file. Below i've posted the qss file. its working fine for QPushButton. but not working for QtoolButton. Plz help me.


Qt Code:
  1. {
  2. image: url(":/resource/Icons/Popup_BTN_N.png");
  3. }
  4.  
  5. QPushButton:pressed
  6. {
  7. image: url(":/resource/Icons/Popup_BTN_D.png");
  8. }
  9.  
  10. QPushButton:focused
  11. {
  12. image: url(":/resource/Icons/Popup_BTN_F.png");
  13. }
  14.  
  15. {
  16. image: url(":/resource/Icons/Popup_BTN_F.png");
  17. }
  18.  
  19.  
  20. {
  21. image: url(":/resource/Icons/Contents_Monitor_Close_Icon_N.png");
  22. }
  23.  
  24.  
  25. QToolButton:pressed
  26. {
  27. bimage: url(":/resource/Icons/Contents_Monitor_Close_Icon_D.png");
  28. }
  29.  
  30.  
  31. QToolButton:focused
  32. {
  33. image: url(":/resource/Icons/Contents_Monitor_Close_Icon_F.png");
  34. }
To copy to clipboard, switch view to plain text mode