Hi,

I must know the background color of one of my widgets to set other components of this widget to the right color.
So far it looked like this:
Qt Code:
  1. m_blackCurve->setPen(QPen(m_Plot->palette().background().color()));
To copy to clipboard, switch view to plain text mode 

Now I'm using stylesheets so thhe palette().background() mehods don't work anymore (give wrong results).

How can I access the background color, which was set in the stylesheet, or is there maybe a better way to fix this?