Get transparency of qt theme
Unsolved
General and Desktop
-
Hi, I'm trying to match the background of a QChartView to the surrounding window, and in doing this I have to get the color and transparency of it. I can easily get the color by doing
QColor bg_translucent = QWidget::palette().color(QWidget::backgroundRole())
,
however this returns 1 for the alpha value, which is not true, it should be 0.8.
Is there a better way to do this or a way to fix this?Edit: If you need more information, there is a post on Reddit here (don't feel like typing everything again).