Is it possible to use Style Sheets in custom, not QWidget-derived classes?

For example, I have a value scale object that draws using GraphicsView. Let's say I want to set it's background color using style sheets.

StyleSheet:
Qt Code:
  1. MyValueScale { background-color: yellow; }
To copy to clipboard, switch view to plain text mode 

Somewhere, I have a class that draws the value scale. Is there a way to access the palette for "MyValueScale", and therefore find out the user wants the background color "yellow"?