In my QMenu I've added checkable QActions, and I need to style them a bit. As a test I tried:

Qt Code:
  1. "QMenu::indicator:non-exclusive:unchecked {"
  2. "image: url(:/images/icons/checkmark_grey.png);"
  3. "}"
  4. "QMenu::indicator:non-exclusive:unchecked:selected {"
  5. "image: url(:/images/icons/checkmark_grey.png);"
  6. "}"
  7. "QMenu::indicator:non-exclusive:checked {"
  8. "image: url(:/images/icons/checkmark_grey.png);"
  9. "}"
  10. "QMenu::indicator:non-exclusive:checked:selected {"
  11. "image: url(:/images/icons/checkmark_grey.png);"
  12. "}"
  13. ;
To copy to clipboard, switch view to plain text mode 

The png:
checkmark_grey.png

When I run my code, the color of the checkmark seems to be set from my png, but the background is grey. I thought it would use my entire png. How do I style the background?

If I don't apply this stylesheet, the color of the checkable region follows my QMenu stylesheet:

Qt Code:
  1. "QMenu::item::enabled {"
  2. "color: white;"
  3. "background-color: rgb(66,66,66);"
  4. "selection-color: rgb(66,66,66);"
  5. "selection-background-color: white;"
  6. "}"
To copy to clipboard, switch view to plain text mode 

What I'm basically trying to do is make the color and background of the checkbox follow item colors.